[tasks] Fix use of source_id
This commit is contained in:
@ -48,12 +48,12 @@ class Task(LongPlayScrobblableMixin):
|
|||||||
url = ""
|
url = ""
|
||||||
scrobble = self.scrobbles(user_id).first()
|
scrobble = self.scrobbles(user_id).first()
|
||||||
if scrobble:
|
if scrobble:
|
||||||
url = TODOIST_TASK_URL.format(id=scrobble.logdata.source_id)
|
url = TODOIST_TASK_URL.format(id=scrobble.logdata.todoist_id)
|
||||||
return url
|
return url
|
||||||
|
|
||||||
def subtitle_for_user(self, user_id):
|
def subtitle_for_user(self, user_id):
|
||||||
scrobble = self.scrobbles(user_id).first()
|
scrobble = self.scrobbles(user_id).first()
|
||||||
return scrobble.logdata.source_id or ""
|
return scrobble.logdata.description or ""
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def find_or_create(cls, title: str) -> "Task":
|
def find_or_create(cls, title: str) -> "Task":
|
||||||
|
|||||||
Reference in New Issue
Block a user