浏览代码

[tasks] Get last task, not first

Colin Powell 8 月之前
父节点
当前提交
470eb0778a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      vrobbler/apps/scrobbles/scrobblers.py

+ 1 - 1
vrobbler/apps/scrobbles/scrobblers.py

@@ -357,7 +357,7 @@ def todoist_scrobble_task(todoist_task: dict, user_id: int) -> Scrobble:
         in_progress=True,
         log__todoist_id=todoist_task.get("todoist_id"),
         task=task,
-    ).first()
+    ).last()
     if in_progress_scrobble:
         return in_progress_scrobble