[notifications] Fix bug in getting profile for mood notification

This commit is contained in:
2025-11-24 15:30:46 -05:00
parent 186ae18e1f
commit a5295d7973
2 changed files with 3 additions and 3 deletions

View File

@ -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}'

View File

@ -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)