From a5295d7973d6fecdc2fe742b391ecc4d38464ea0 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Mon, 24 Nov 2025 15:30:46 -0500 Subject: [PATCH] [notifications] Fix bug in getting profile for mood notification --- vrobbler/apps/scrobbles/notifications.py | 2 +- vrobbler/apps/scrobbles/scrobblers.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vrobbler/apps/scrobbles/notifications.py b/vrobbler/apps/scrobbles/notifications.py index f3c62d8..628483d 100644 --- a/vrobbler/apps/scrobbles/notifications.py +++ b/vrobbler/apps/scrobbles/notifications.py @@ -11,7 +11,7 @@ class BasicNtfyNotification(ABC): title: str = "" def __init__(self, profile: "UserProfile"): - self.profile = profile.user + self.profile = profile protocol = "http" if settings.DEBUG else "https" domain = Site.objects.get_current().domain self.url_tmpl = f'{protocol}://{domain}' + '{path}' diff --git a/vrobbler/apps/scrobbles/scrobblers.py b/vrobbler/apps/scrobbles/scrobblers.py index cb72b9c..3e2df53 100644 --- a/vrobbler/apps/scrobbles/scrobblers.py +++ b/vrobbler/apps/scrobbles/scrobblers.py @@ -858,12 +858,12 @@ def manual_scrobble_task(url: str, user_id: int, source: str = "Vrobbler", actio "log": {"description": description, "source_id": source_id}, } logger.info( - "[vrobbler-scrobble] webpage scrobble request received", + "[vrobbler-scrobble] task scrobble request received", extra={ "task_id": task.id, "user_id": user_id, "scrobble_dict": scrobble_dict, - "media_type": Scrobble.MediaType.WEBPAGE, + "media_type": Scrobble.MediaType.TASK, }, ) scrobble = Scrobble.create_or_update(task, user_id, scrobble_dict)