From db27460026061fbc6664e5f494f9c09669c258ee Mon Sep 17 00:00:00 2001 From: Mark Murnane Date: Fri, 7 Jul 2023 16:35:48 -0400 Subject: [PATCH] diff is a dict, not a str --- uber/models/tracking.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uber/models/tracking.py b/uber/models/tracking.py index 42753ff9f..dd036413a 100644 --- a/uber/models/tracking.py +++ b/uber/models/tracking.py @@ -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