Try and fix things

This commit is contained in:
2023-11-24 14:33:09 +01:00
parent f6509bbaa8
commit da944f9ef1
5 changed files with 14 additions and 2 deletions

View File

@ -56,6 +56,11 @@ class ScrobblableMixin(TimeStampedModel):
def find_or_create(cls):
logger.warn("find_or_create() not implemented yet")
def scrobble(self, user_id, **kwargs):
"""Given a user ID and a dictionary of data, attempts to scrobble it"""
from scrobbles.models import Scrobble
Scrobble.create_or_update(self, user_id, **kwargs)
class LongPlayScrobblableMixin(ScrobblableMixin):
class Meta: