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

Merge branch 'use-sqlite' into 'master'

use sqlite in mages instead of working around the errors

See merge request !405
parents 9554522e a6c4aa18
No related branches found
No related tags found
1 merge request!405use sqlite in mages instead of working around the errors
Pipeline #583969 passed
......@@ -13,3 +13,4 @@ coverage.xml
dist
htmlcov
junit.xml
api_database.db
......@@ -14,11 +14,7 @@ class Tables(str, Enum):
database_url = os.getenv("DATABASE_URL", "sqlite:///./api_database.db")
data_host = os.getenv("DATA_HOST")
if database_url == "":
database_url = "sqlite:///./api_database.db"
try:
engine = create_engine(database_url)
except Exception as e:
print("error creating engine:", e)
if "mage" in data_host:
pass
engine = create_engine(database_url)
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