Skip to content

Commit

Permalink
key word as variable reomved
Browse files Browse the repository at this point in the history
  • Loading branch information
womullan committed Mar 2, 2024
1 parent 35cbcf2 commit 5f3e58b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/lsst/consdb/hinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,12 @@ def process_date(day_obs: str) -> None:
instrument_mapping = LSSTCAM_MAPPING

host = os.environ.get("DB_HOST")
pass = os.environ.get("DB_PASS")
passwd = os.environ.get("DB_PASS")
user = os.environ.get("DB_USER")
dbname = os.environ.get("DB_NAME")
url = ""
if host and pass and user and dbname:
url = f"postgresql://{user}:{pass}@{host}/{dbname}"
if host and passwd and user and dbname:
url = f"postgresql://{user}:{passwd}@{host}/{dbname}"
else:
url = os.environ.get(
"POSTGRES_URL", "postgresql://usdf-butler.slac.stanford.edu:5432/lsstdb1"
Expand Down

0 comments on commit 5f3e58b

Please sign in to comment.