[task] Ooops, add task id
This commit is contained in:
@ -324,7 +324,7 @@ def todoist_scrobble_update_task(
|
||||
scrobble = Scrobble.objects.filter(
|
||||
in_progress=True,
|
||||
user_id=user_id,
|
||||
log__task_id=todoist_note.get("task_id"),
|
||||
log__todoist_id=todoist_note.get("task_id"),
|
||||
).first()
|
||||
|
||||
if not scrobble:
|
||||
@ -339,9 +339,7 @@ def todoist_scrobble_update_task(
|
||||
return
|
||||
|
||||
existing_notes = scrobble.log.get("notes", {})
|
||||
existing_notes[todoist_note.get("todoist_id")] = todoist_note.get(
|
||||
"content"
|
||||
)
|
||||
existing_notes[todoist_note.get("todoist_id")] = todoist_note.get("notes")
|
||||
scrobble.log["notes"] = existing_notes
|
||||
scrobble.save(update_fields=["log"])
|
||||
logger.info(
|
||||
|
||||
Reference in New Issue
Block a user