File tree Expand file tree Collapse file tree
src/opengeodeweb_back/routes Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments