[notifications] Add click to finish

This commit is contained in:
2024-11-24 09:36:50 -05:00
parent fd38046113
commit 51c1acd677
15 changed files with 23 additions and 21 deletions

View File

@ -95,9 +95,14 @@ class ScrobblableMixin(TimeStampedModel):
)
return Scrobble.create_or_update(self, user_id, scrobble_data)
def get_start_url(self):
@property
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()