Skip to content

Commit 1591842

Browse files
committed
need to have a defalut value for db_filename
1 parent 47e500e commit 1591842

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/opengeodeweb_back/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def run_server() -> None:
140140
flush=True,
141141
)
142142

143-
db_filename: str = app.config.get("DATABASE_FILENAME")
143+
db_filename: str = app.config.get("DATABASE_FILENAME") or "project.db"
144144
db_path = os.path.join(args.data_folder_path, db_filename)
145145
os.makedirs(os.path.dirname(db_path), exist_ok=True)
146146
app.config["SQLALCHEMY_DATABASE_URI"] = f"sqlite:///{db_path}"

0 commit comments

Comments
 (0)