Skip to content

Commit

Permalink
fix: replace escaped \; with ; to properly unescape course name
Browse files Browse the repository at this point in the history
  • Loading branch information
dantetemplar committed Feb 3, 2025
1 parent a6364b8 commit 7fe91b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/ics/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def make_deadline(event: icalendar.Event) -> icalendar.Event:
new["uid"] = event["uid"]
new["dtstamp"] = event["dtstamp"]
categories = (event["categories"]).to_ical().decode(encoding="utf-8")
course_name = html.unescape(categories.split("]")[1])
course_name = html.unescape(categories.split("]")[1].replace(r"\;", ";"))
new["summary"] = event["summary"] + f" - {course_name}"

new["description"] = f"Course: {course_name}\nDue to: {end.timetz().isoformat()}"
Expand Down

0 comments on commit 7fe91b6

Please sign in to comment.