load everything in credentials at once

This commit is contained in:
Daniel 2023-12-04 12:40:57 +01:00
parent 843d971916
commit 40d114d10a

View file

@ -44,8 +44,11 @@ cred_file = Path("credentials.json")
with open(cred_file, "r") as f:
CREDENTIALS = json.load(f)
os.environ["ADMIN_USER"] = CREDENTIALS["admin_user"]
os.environ["ADMIN_PASS"] = CREDENTIALS["admin_pass"]
for key, value in CREDENTIALS.items():
os.environ[key] = value
# os.environ["ADMIN_USER"] = CREDENTIALS["admin_user"]
# os.environ["ADMIN_PASS"] = CREDENTIALS["admin_pass"]
# ----------------------------- define session_id ---------------------------- #