fix db.create_all() call

Remove the `app` parameter from `db.create_all()` and move the call into an app context to be compatible with Flask-SQLAlchemy version 3.0.
This commit is contained in:
2022-11-04 18:14:07 +01:00
parent 98bee95048
commit 7831bc73ad
+1 -1
View File
@@ -73,9 +73,9 @@ def create_app() -> Flask:
)
db.init_app(app)
db.create_all(app=app)
with app.app_context():
db.create_all()
init_db(app)
# Blueprints registrieren