From aeb460d6776661c5b6349a6f458207e69342c9d5 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Fri, 22 May 2026 12:13:09 -0400 Subject: [PATCH] [mood] Fix mood checkin sending --- vrobbler/apps/scrobbles/utils.py | 8 +++----- vrobbler/settings.py | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/vrobbler/apps/scrobbles/utils.py b/vrobbler/apps/scrobbles/utils.py index 71973b2..47ca0ac 100644 --- a/vrobbler/apps/scrobbles/utils.py +++ b/vrobbler/apps/scrobbles/utils.py @@ -327,15 +327,13 @@ def send_stop_notifications_for_in_progress_scrobbles() -> int: def send_mood_checkin_reminders() -> int: - """Get all profiles with mood check-ins enabled and checkin!""" + """Send mood check-in to every user with the setting enabled.""" from profiles.models import UserProfile - now = timezone.now() notifications_sent = 0 for profile in UserProfile.objects.filter(mood_checkin_enabled=True): - if profile.mood_checkin_frequency == "hourly" and now.minute == 0: - MoodNtfyNotification(profile).send() - notifications_sent += 1 + MoodNtfyNotification(profile).send() + notifications_sent += 1 return notifications_sent diff --git a/vrobbler/settings.py b/vrobbler/settings.py index 1d25754..a681270 100644 --- a/vrobbler/settings.py +++ b/vrobbler/settings.py @@ -153,7 +153,7 @@ CELERY_BEAT_SCHEDULE = { }, "send-mood-checkin": { "task": "scrobbles.tasks.send_mood_checkin", - "schedule": crontab(hour="*", minute=0), + "schedule": crontab(hour="*/4", minute=0), }, }