[notifications] Fix finish url being on media
This commit is contained in:
@ -99,10 +99,6 @@ class ScrobblableMixin(TimeStampedModel):
|
||||
def start_url(self):
|
||||
return reverse("scrobbles:start", kwargs={"uuid": self.uuid})
|
||||
|
||||
@property
|
||||
def finish_url(self) -> str:
|
||||
return reverse("scrobbles:finish", kwargs={"uuid": self.uuid})
|
||||
|
||||
@property
|
||||
def strings(self) -> ScrobblableConstants:
|
||||
return ScrobblableConstants()
|
||||
|
||||
@ -604,6 +604,10 @@ class Scrobble(TimeStampedModel):
|
||||
id=self.logdata.serial_scrobble_id
|
||||
).first()
|
||||
|
||||
@property
|
||||
def finish_url(self) -> str:
|
||||
return reverse("scrobbles:finish", kwargs={"uuid": self.uuid})
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
if not self.uuid:
|
||||
self.uuid = uuid4()
|
||||
|
||||
Reference in New Issue
Block a user