File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed
mapswipe_workers/mapswipe_workers Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change 44import json
55import time
66
7- import click
87import schedule as sched
8+
9+ import click
910from mapswipe_workers import auth
1011from mapswipe_workers .definitions import CustomError , logger , sentry
1112from 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" )
You can’t perform that action at this time.
0 commit comments