Skip to content

Commit

Permalink
chore: unescape course name
Browse files Browse the repository at this point in the history
  • Loading branch information
dantetemplar committed Feb 3, 2025
1 parent 74d00ae commit a6364b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/ics/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import asyncio
import datetime
import html
import logging
from collections.abc import AsyncGenerator
from pathlib import Path
Expand Down Expand Up @@ -234,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 = categories.split("]")[1]
course_name = html.unescape(categories.split("]")[1])
new["summary"] = event["summary"] + f" - {course_name}"

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

0 comments on commit a6364b8

Please sign in to comment.