Skip to content

Commit bde6708

Browse files
MaxNumeriquegithub-actions[bot]
authored andcommitted
Apply prepare changes
1 parent ef26ea5 commit bde6708

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

src/opengeodeweb_back/routes/blueprint_routes.py

Lines changed: 7 additions & 5 deletions
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):
@@ -375,21 +377,21 @@ def import_project() -> flask.Response:
375377
with get_session() as session:
376378
for data_entry in session.query(Data).all():
377379
data_path = geode_functions.data_file_path(data_entry.id)
378-
380+
379381
viewable_name = data_entry.viewable_file_name
380382
if viewable_name:
381383
vpath = geode_functions.data_file_path(data_entry.id, viewable_name)
382384
if os.path.isfile(vpath):
383385
continue
384-
386+
385387
input_file = str(data_entry.input_file or "")
386388
if not input_file:
387389
continue
388-
390+
389391
input_full = geode_functions.data_file_path(data_entry.id, input_file)
390392
if not os.path.isfile(input_full):
391393
continue
392-
394+
393395
data_object = geode_functions.load(data_entry.geode_object, input_full)
394396
utils_functions.save_all_viewables_and_return_info(
395397
data_entry.geode_object, data_object, data_entry, data_path

0 commit comments

Comments
 (0)