Skip to content

Commit a5035c3

Browse files
author
matthias_schaub
committed
Notify start and finish of archive and deletion of projects.
1 parent 9fb5c1e commit a5035c3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

mapswipe_workers/mapswipe_workers/mapswipe_workers.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,11 @@ def run_archive_project(project_id, project_ids):
205205
return None
206206
elif not project_ids:
207207
project_ids = [project_id]
208+
click.echo("Start archive")
208209
update_data.update_project_data(project_ids)
209210
transfer_results.transfer_results(project_ids)
210-
archive_project.archive_project(project_ids)
211+
if archive_project.archive_project(project_ids):
212+
click.echo("Finished archive")
211213

212214

213215
@cli.command("delete")
@@ -245,7 +247,8 @@ def run_delete_project(project_id, project_ids):
245247

246248
if c == "y":
247249
click.echo("Start deletion")
248-
delete_project.delete_project(project_ids)
250+
if delete_project.delete_project(project_ids):
251+
click.echo("Finished deletions")
249252
elif c == "n":
250253
click.echo("Abort!")
251254
else:

0 commit comments

Comments
 (0)