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 1ed8804 commit 271e6a1Copy full SHA for 271e6a1
src/opengeodeweb_back/app.py
@@ -140,12 +140,13 @@ def run_server() -> None:
140
flush=True,
141
)
142
143
- db_filename: str = app.config.get("DATABASE_FILENAME") or "database.db"
+ db_filename: str = app.config.get("DATABASE_FILENAME")
144
db_path = os.path.join(args.data_folder_path, db_filename)
145
os.makedirs(os.path.dirname(db_path), exist_ok=True)
146
app.config["SQLALCHEMY_DATABASE_URI"] = f"sqlite:///{db_path}"
147
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False
148
- init_database(app, db_filename)
+
149
+ init_database(db_path)
150
print(f"Database initialized at: {db_path}", flush=True)
151
152
app.run(debug=args.debug, host=args.host, port=args.port, ssl_context=SSL)
0 commit comments