Skip to content

Commit 2309b2c

Browse files
committed
Merge branch 'feat/save_and_load' of https://github.com/Geode-solutions/OpenGeodeWeb-Back into feat/save_and_load
2 parents b2cf2e8 + 14c6bf6 commit 2309b2c

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/opengeodeweb_back/routes/blueprint_routes.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,10 +305,14 @@ def export_project() -> flask.Response:
305305
if os.path.isfile(input_path):
306306
zip_file.write(input_path, os.path.join(data_id, str(input_file)))
307307

308-
for relative_path in additional_files if isinstance(additional_files, list) else []:
308+
for relative_path in (
309+
additional_files if isinstance(additional_files, list) else []
310+
):
309311
additional_path = os.path.join(base_dir, relative_path)
310312
if os.path.isfile(additional_path):
311-
zip_file.write(additional_path, os.path.join(data_id, relative_path))
313+
zip_file.write(
314+
additional_path, os.path.join(data_id, relative_path)
315+
)
312316

313317
zip_file.writestr("snapshot.json", flask.json.dumps(params.snapshot))
314318

0 commit comments

Comments
 (0)