[scrobbles] Fix checking for signal completion
All checks were successful
build & deploy / test (push) Successful in 1m43s
build & deploy / deploy (push) Successful in 26s

This commit is contained in:
2026-03-24 09:36:40 -04:00
parent 1ea29fee1b
commit 24c7c33ac2

View File

@ -18,7 +18,7 @@ def update_charts_on_scrobble_complete(sender, instance, **kwargs):
if instance.timestamp is None:
return
if instance.media_type not in MEDIA_TYPES:
if instance.media_type.lower() not in MEDIA_TYPES:
return
_update_charts_for_timestamp(instance.user, instance.timestamp)
@ -29,7 +29,7 @@ def update_charts_on_scrobble_delete(sender, instance, **kwargs):
if instance.timestamp is None:
return
if instance.media_type not in MEDIA_TYPES:
if instance.media_type.lower() not in MEDIA_TYPES:
return
_update_charts_for_timestamp(instance.user, instance.timestamp)