[tasks] Get last task, not first

This commit is contained in:
2024-10-15 15:14:37 -04:00
parent f075492554
commit 470eb0778a

View File

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