Browse Source

[tasks] Fix use of source_id

Colin Powell 7 months ago
parent
commit
8fa538dbee
1 changed files with 2 additions and 2 deletions
  1. 2 2
      vrobbler/apps/tasks/models.py

+ 2 - 2
vrobbler/apps/tasks/models.py

@@ -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":