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