mirror of
https://github.com/hughrun/ephemetoot
synced 2025-01-28 12:29:17 +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,22 +401,30 @@ 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=" : ")
|
||||
|
||||
print("Removed " + str(deleted_count) + " toots.\n")
|
||||
|
||||
if not options.quiet:
|
||||
print("---------------------------------------")
|
||||
print("🥳 ==> 🧼 ==> 😇 User cleanup complete!")
|
||||
print("---------------------------------------\n")
|
||||
if not options.quiet:
|
||||
print("---------------------------------------")
|
||||
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