Skip to content

Commit 835daff

Browse files
committed
error 'out_file'
1 parent db39008 commit 835daff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

py/API_operations/exports/ForProject.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ def do_export(self) -> None:
222222
nb_rows = self.do_export_projects(
223223
[int(project_id) for project_id in project_ids], progress_before_copy
224224
)
225+
done_infos.update({"rowcount": nb_rows, "out_file": self.out_file_name})
225226
# Final copy
226227
if req.out_to_ftp:
227228
self.update_progress(progress_before_copy, "Copying file to FTP")
@@ -240,9 +241,9 @@ def do_export(self) -> None:
240241
final_message = "Export successful"
241242

242243
self.update_progress(100, final_message)
243-
if out_file_name is not None:
244+
if out_file_name is not None and "out_file" not in done_infos:
244245
self.out_file_name = out_file_name
245-
done_infos.update({"rowcount": nb_rows, "out_file": self.out_file_name})
246+
done_infos.update({"out_file": self.out_file_name})
246247
self.set_job_result(errors=[], infos=done_infos)
247248

248249
def append_log_to_zip(self) -> None:

0 commit comments

Comments
 (0)