[tasks] Get last task, not first
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user