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

use sqlite in mages instead of working around the errors

parent 9554522e
No related branches found
No related tags found
1 merge request!405use sqlite in mages instead of working around the errors
......@@ -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