Skip to content

Commit

Permalink
diff is a dict, not a str
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbyt3r committed Jul 7, 2023
1 parent 3e33517 commit db27460
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions uber/models/tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ def track(cls, action, instance):
data = cls.format(diff)
if len(diff) == 1 and 'badge_num' in diff and c.SHIFT_CUSTOM_BADGES:
action = c.AUTO_BADGE_SHIFT
if isinstance(instance, AutomatedEmail) and diff.startswith(("currently_sending",
"last_send_time",
"unapproved_count")):
if isinstance(instance, AutomatedEmail) and not diff.keys().isdisjoint(("currently_sending",
"last_send_time",
"unapproved_count")):
return
elif not data:
return
Expand Down

0 comments on commit db27460

Please sign in to comment.