This commit is contained in:
Oscar Krause 2022-12-28 11:05:41 +01:00
parent 670e05f693
commit dada9cc4cd
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ __details = dict(
version=VERSION,
)
app, db = FastAPI(**__details), create_engine(url=str(getenv('DATABASE', 'sqlite:///db.sqlite')))
app, db = FastAPI(**__details), create_engine(str(getenv('DATABASE', 'sqlite:///db.sqlite')))
db_init(db)
DLS_URL = str(getenv('DLS_URL', 'localhost'))

View File

@ -2,7 +2,7 @@ import datetime
from sqlalchemy import Column, VARCHAR, CHAR, ForeignKey, DATETIME, UniqueConstraint, update, and_, delete, inspect
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.future import Engine
from sqlalchemy.engine import Engine
from sqlalchemy.orm import sessionmaker
Base = declarative_base()