Attempt to fix database not creating tables

This commit is contained in:
Xevion
2022-03-28 18:04:45 -05:00
parent 2d014628e4
commit c4b22b8632

4
app.py
View File

@@ -113,6 +113,10 @@ def create_app():
@app.cli.command("create_all") @app.cli.command("create_all")
def db_create_all() -> None: def db_create_all() -> None:
with app.app_context():
db.create_all(app=app)
with app.app_context():
db.create_all(app=app) db.create_all(app=app)
return app return app