Skip to content

Commit 9947cbe

Browse files
committed
fix: ensure season notifications are sent when tv is enabled #1057
1 parent a47bf3d commit 9947cbe

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/events/notifications.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,11 @@ def send_notifications(events, users, title):
130130
Dictionary with results information
131131
"""
132132
event_count = events.count()
133+
logger.info(
134+
"Found %s users with this type of notifications enabled",
135+
users.count(),
136+
)
133137
logger.info("Found %s events for notification", event_count)
134-
logger.info("Found %s eligible users", users.count())
135138

136139
# Create event lookup for quick access
137140
events_by_item_and_content = {}
@@ -165,7 +168,7 @@ def get_user_releases(users, target_events):
165168

166169
user_enabled_types = {}
167170
for user in users:
168-
user_enabled_types[user.id] = user.get_enabled_media_types()
171+
user_enabled_types[user.id] = user.get_active_media_types()
169172

170173
user_tracking_data = get_all_user_tracking_data(
171174
users,

0 commit comments

Comments
 (0)