mirror of
https://github.com/hughrun/ephemetoot
synced 2025-03-11 00:40:06 +01:00
improve test run message
Resolves #50 by showing a different 'completion message' for test runs.
This commit is contained in:
parent
c3235027da
commit
81f408bde3
@ -401,13 +401,7 @@ def check_batch(config, options, mastodon, user_id, timeline, deleted_count=0):
|
||||
if len(next_batch) > 0:
|
||||
check_batch(config, options, mastodon, user_id, next_batch, deleted_count)
|
||||
else:
|
||||
if options.test:
|
||||
if options.datestamp:
|
||||
print( "\n", datestamp_now(), sep="", end=" : ")
|
||||
|
||||
print(
|
||||
"Test run completed. This would have removed", str(deleted_count), "toots.\n")
|
||||
else:
|
||||
if not options.test:
|
||||
if options.datestamp:
|
||||
print( "\n", datestamp_now(), end=" : ")
|
||||
|
||||
@ -418,6 +412,20 @@ def check_batch(config, options, mastodon, user_id, timeline, deleted_count=0):
|
||||
print("🥳 ==> 🧼 ==> 😇 User cleanup complete!")
|
||||
print("---------------------------------------\n")
|
||||
|
||||
else:
|
||||
|
||||
if options.quiet:
|
||||
if options.datestamp:
|
||||
print( "\n", datestamp_now(), sep="", end=" : ")
|
||||
|
||||
print("Test run completed. This would have removed", str(deleted_count), "toots.\n")
|
||||
|
||||
else:
|
||||
print("---------------------------------------")
|
||||
print("🥳 ==> 🧪 ==> 📋 Test run complete!")
|
||||
print("This would have removed", str(deleted_count), "toots.")
|
||||
print("---------------------------------------\n")
|
||||
|
||||
except IndexError:
|
||||
print("No toots found!\n")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user