From 470eb0778a822b466a01f1ffd06229ff3780adab Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Tue, 15 Oct 2024 15:14:37 -0400 Subject: [PATCH] [tasks] Get last task, not first --- vrobbler/apps/scrobbles/scrobblers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vrobbler/apps/scrobbles/scrobblers.py b/vrobbler/apps/scrobbles/scrobblers.py index 4453ba8..39d743a 100644 --- a/vrobbler/apps/scrobbles/scrobblers.py +++ b/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