Skip to content

Commit f510808

Browse files
committed
Cache bust (?)
1 parent 9914063 commit f510808

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/calendar.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import random
2+
13
import arrow
24
import httpx
35
from ics import Calendar, Event
@@ -6,6 +8,7 @@
68

79

810
def get_next_meeting() -> Event | None:
9-
calendar = Calendar(httpx.get(CALENDAR_URL).text)
11+
url = f"{CALENDAR_URL}?c={random.randint(0, 9999)}"
12+
calendar = Calendar(httpx.get(url).text)
1013

1114
return next(calendar.timeline.start_after(arrow.now()), None)

0 commit comments

Comments
 (0)