Skip to content

Commit

Permalink
tweak ical
Browse files Browse the repository at this point in the history
  • Loading branch information
mrvladus committed May 22, 2024
1 parent 90da11b commit 5b3e97c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions errands/lib/sync/providers/caldav.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,12 @@ def __update_remote_task(self, calendar: Calendar, task: TaskData) -> None:
del todo.icalendar_component["dtstart"]
if task.created_at:
todo.icalendar_component["dtstamp"] = task.created_at
else:
del todo.icalendar_component["dtstamp"]
if task.changed_at:
todo.icalendar_component["last-modified"] = task.changed_at
else:
del todo.icalendar_component["last-modified"]
todo.icalendar_component["summary"] = task.text
todo.icalendar_component["percent-complete"] = int(task.percent_complete)
todo.icalendar_component["description"] = task.notes
Expand Down

0 comments on commit 5b3e97c

Please sign in to comment.