Explorar el Código

[tasks] Get last task, not first

Colin Powell hace 8 meses
padre
commit
470eb0778a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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