Skip to content

Commit

Permalink
fix #279
Browse files Browse the repository at this point in the history
  • Loading branch information
mrvladus committed May 16, 2024
1 parent 4f00dcc commit 24a8eb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions errands/lib/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def from_ical(ical: str | bytes, list_uid: str) -> TaskData:
elif "STATUS" in prop:
task.completed = True if value == "COMPLETED" else False
elif "SUMMARY" in prop:
task.text = value
task.text = value.replace("\\,", ",").replace("\\\\", "\\")
elif "UID" in prop:
task.uid = value
elif "DUE" in prop:
Expand All @@ -199,7 +199,7 @@ def from_ical(ical: str | bytes, list_uid: str) -> TaskData:
if task.start_date and "T" not in task.start_date:
task.start_date += "T000000"
elif "DESCRIPTION" in prop:
task.notes = value
task.notes = value.replace("\\,", ",").replace("\\\\", "\\")
elif "CATEGORIES" in prop:
task.tags = value.split(",") if value else []
elif "X-ERRANDS-COLOR" in prop:
Expand Down

0 comments on commit 24a8eb5

Please sign in to comment.