[fs2zammad] sort RT tickets before import

This commit is contained in:
fnux 2024-05-07 13:59:59 +02:00
parent ac8807167c
commit b1fbe9d4ab
No known key found for this signature in database
GPG key ID: 4502C902C00A1E12

View file

@ -272,6 +272,7 @@ os.makedirs("failed", exist_ok=True)
ticket_ids = os.listdir("tickets/")
print(f"Found {len(ticket_ids)} tickets on filesystem.")
ticket_ids.sort()
for id in ticket_ids:
try:
create_zammad_ticket(id, zammad, h2t, 3)