[tasks] Clean up param names and loggin

This commit is contained in:
2025-06-27 11:50:30 -04:00
parent 4e37bc5ab9
commit bf7d2514f2
3 changed files with 8 additions and 8 deletions

View File

@ -409,9 +409,9 @@ def todoist_scrobble_task(
user_id: int,
started: bool = False,
stopped: bool = False,
context_list: list[str] = [],
user_context_list: list[str] = [],
) -> Scrobble:
title = get_title_from_labels(todoist_task.get("todoist_label_list", []), context_list)
title = get_title_from_labels(todoist_task.get("todoist_label_list", []), user_context_list)
task = Task.find_or_create(title)
timestamp = pendulum.parse(todoist_task.get("updated_at", timezone.now()))
@ -533,10 +533,10 @@ def emacs_scrobble_task(
user_id: int,
started: bool = False,
stopped: bool = False,
context_list: list[str] = [],
user_context_list: list[str] = [],
) -> Scrobble | None:
source_id = task_data.get("source_id")
title = get_title_from_labels(task_data.get("labels", []), context_list)
title = get_title_from_labels(task_data.get("labels", []), user_context_list)
task = Task.find_or_create(title)