Skip to content

Commit 38ed9d7

Browse files
committed
Merge branch 'feat/save_and_load' of https://github.com/Geode-solutions/OpenGeodeWeb-Back into feat/save_and_load
2 parents 7afe531 + bde6708 commit 38ed9d7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/opengeodeweb_back/routes/blueprint_routes.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,9 @@ def import_project() -> flask.Response:
343343
connection.scoped_session_registry.remove()
344344
if connection.engine:
345345
connection.engine.dispose()
346-
connection.engine = connection.session_factory = connection.scoped_session_registry = None
346+
connection.engine = connection.session_factory = (
347+
connection.scoped_session_registry
348+
) = None
347349

348350
try:
349351
if os.path.exists(data_folder_path):
@@ -388,10 +390,12 @@ def import_project() -> flask.Response:
388390
if os.path.isfile(vpath):
389391
continue
390392

393+
391394
input_file = str(data_entry.input_file or "")
392395
if not input_file:
393396
continue
394397

398+
395399
input_full = geode_functions.data_file_path(data_entry.id, input_file)
396400
if not os.path.isfile(input_full):
397401
continue

0 commit comments

Comments
 (0)