Skip to content
Snippets Groups Projects
Commit 48eef008 authored by Hobbs, Alexandra (Contractor)'s avatar Hobbs, Alexandra (Contractor)
Browse files

use data_host for checking env instead of target_hostname

parent 8b7fb1fa
No related branches found
No related tags found
1 merge request!404Fix mage conditional
......@@ -14,11 +14,11 @@ class Tables(str, Enum):
database_url = os.getenv("DATABASE_URL", "sqlite:///./api_database.db")
hostname = os.getenv("DATA_HOST")
data_host = os.getenv("DATA_HOST")
try:
engine = create_engine(database_url)
except Exception as e:
print("error creating engine:", e)
if "mage" in hostname:
if "mage" in data_host:
pass
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment