mirror of
https://github.com/nelsbrock/NateMan.git
synced 2026-08-14 13:32:09 +02:00
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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user