[tasks] Fix use of source_id

This commit is contained in:
2024-10-15 14:56:26 -04:00
parent 26d82518fa
commit 8fa538dbee

View File

@ -48,12 +48,12 @@ class Task(LongPlayScrobblableMixin):
url = ""
scrobble = self.scrobbles(user_id).first()
if scrobble:
url = TODOIST_TASK_URL.format(id=scrobble.logdata.source_id)
url = TODOIST_TASK_URL.format(id=scrobble.logdata.todoist_id)
return url
def subtitle_for_user(self, user_id):
scrobble = self.scrobbles(user_id).first()
return scrobble.logdata.source_id or ""
return scrobble.logdata.description or ""
@classmethod
def find_or_create(cls, title: str) -> "Task":