Skip to content

Commit

Permalink
Fix missing set
Browse files Browse the repository at this point in the history
  • Loading branch information
squeaky-pl committed Nov 18, 2024
1 parent c7d6dc2 commit a0dfa3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/recategorize-messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ def session_factory():
category.name for category in message.categories if category.name
)
if old_categories != new_categories:
if only_categories and not new_categories & only_categories.split(
","
if only_categories and not new_categories & set(
only_categories.split(",")
):
session.rollback()
continue
Expand Down

0 comments on commit a0dfa3c

Please sign in to comment.