We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a020ee commit 4517270Copy full SHA for 4517270
run/idp-sql/main.py
@@ -26,9 +26,8 @@
26
app = Flask(__name__, static_folder="static", static_url_path="")
27
28
29
-@app.before_first_request
30
-def create_table() -> None:
31
- """Initialize database connection and table on startup."""
+"""Initialize database connection and table on startup."""
+with app.app_context():
32
database.create_tables()
33
34
run/idp-sql/requirements.txt
@@ -1,4 +1,4 @@
1
-Flask==2.1.0
+Flask==3.0.0
2
SQLAlchemy==2.0.17
3
pg8000==1.29.8
4
gunicorn==20.1.0
0 commit comments