We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b6ba0e commit 2feb28bCopy full SHA for 2feb28b
2 files changed
test_extra_client.py
@@ -3,7 +3,7 @@
3
4
5
@task
6
-def get_other_docs(uid):
+def get_other_docs(uid, api_key=api_key):
7
logger = get_run_logger()
8
result = get_tiled_client()["raw"][uid]
9
for name, doc in result.documents():
utils.py
@@ -1,14 +1,10 @@
1
-from dotenv import load_dotenv
2
from tiled.client import from_profile
import os
LOCATION = "tst"
-def get_tiled_client():
10
- with open("/srv/tiled.secret", "r") as secrets:
11
- load_dotenv(stream=secrets)
12
- api_key = os.environ["TILED_API_KEY"]
+def get_tiled_client(api_key=None):
13
tiled_client = from_profile("nsls2", api_key=api_key)[LOCATION]
14
return tiled_client
0 commit comments