diff --git a/weblate_web/management/commands/zammad_spam.py b/weblate_web/management/commands/zammad_spam.py index 5ee99f5d05..10abb0c77f 100644 --- a/weblate_web/management/commands/zammad_spam.py +++ b/weblate_web/management/commands/zammad_spam.py @@ -54,7 +54,7 @@ def handle(self, *args, **options): imap.login(settings.IMAP_USER, settings.IMAP_PASSWORD) imap.select(settings.IMAP_SPAM_FOLDER) - search = zammad.ticket.search({"query": "tags:spam AND -tags:reported-spam"}) + search = zammad.ticket.search("tags:spam AND -tags:reported-spam") for ticket in search: # Oldest article ticket_id = ticket["id"]