[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

4
rt2fs
View file

@ -62,7 +62,9 @@ def dump(id, retries=3):
print("Got 'None' while fetching ticket") print("Got 'None' while fetching ticket")
os.exit(1) os.exit(1)
ticket["original_id"] = str(id) 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["Creator"])
maybe_dump_user(rt, ticket["Owner"]) maybe_dump_user(rt, ticket["Owner"])