Skip to content

Commit c2f056a

Browse files
author
matthias_schaub
committed
Run black.
1 parent 1f6c6b6 commit c2f056a

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

mapswipe_workers/mapswipe_workers/mapswipe_workers.py

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
import json
55
import time
66

7-
import click
87
import schedule as sched
8+
9+
import click
910
from mapswipe_workers import auth
1011
from mapswipe_workers.definitions import CustomError, logger, sentry
1112
from mapswipe_workers.firebase_to_postgres import (
1213
archive_project,
14+
delete_project,
1315
transfer_results,
1416
update_data,
1517
)
@@ -230,20 +232,23 @@ def run_delete_project(project_id, project_ids):
230232
elif not project_ids:
231233
project_ids = [project_id]
232234

233-
click.echo("Projects and all associated data including results with following project ids will be deleted permantly:")
235+
click.echo(
236+
"Projects and all associated data including results "
237+
+ "with following project ids will be deleted permantly:"
238+
)
234239
for project_id in project_ids:
235240
click.echo(project_id)
236241
click.echo()
237-
click.echo('Continue with deletion? [yn] ', nl=False)
242+
click.echo("Continue with deletion? [yn] ", nl=False)
238243
click.echo()
239244
c = click.getchar()
240245

241-
if c == 'y':
246+
if c == "y":
242247
delete_project.delete_project()
243-
elif c == 'n':
244-
click.echo('Abort!')
248+
elif c == "n":
249+
click.echo("Abort!")
245250
else:
246-
click.echo('Invalid input')
251+
click.echo("Invalid input")
247252

248253

249254
@cli.command("run")

0 commit comments

Comments
 (0)