Skip to content

Commit

Permalink
zammad: fix ticket search
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Nov 13, 2023
1 parent f4078e1 commit 81d284d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weblate_web/management/commands/zammad_spam.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 81d284d

Please sign in to comment.