[rt2fs] mention ignored tickets (spam flag)

This commit is contained in:
fnux 2024-04-22 13:33:13 +02:00
parent 667b80d433
commit 74886ee784
No known key found for this signature in database
GPG Key ID: 4502C902C00A1E12
1 changed files with 3 additions and 1 deletions

4
rt2fs
View File

@ -62,7 +62,9 @@ def dump(id, retries=3):
print("Got 'None' while fetching ticket")
os.exit(1)
ticket["original_id"] = str(id)
if ticket["Queue"] != 'spam':
if ticket["Queue"] == 'spam':
print(f"Ignoring ticket #{id} (marked as SPAM)")
else:
maybe_dump_user(rt, ticket["Creator"])
maybe_dump_user(rt, ticket["Owner"])