From 1a438928d4f41dc8c635702ba73216c1ac171990 Mon Sep 17 00:00:00 2001 From: Tim Birkett Date: Tue, 17 Oct 2023 14:04:08 +0100 Subject: [PATCH] enable recurrent events in ical-proxy --- ical-proxy/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ical-proxy/app.py b/ical-proxy/app.py index 6845292..84fa381 100644 --- a/ical-proxy/app.py +++ b/ical-proxy/app.py @@ -15,6 +15,7 @@ CACHE = TTLCache(maxsize=1000, ttl=CACHE_TTL) DATE_MIN = (1970, 1, 1) +LOOK_AHEAD_MONTHS = 6 app = Flask(__name__) @@ -104,7 +105,7 @@ def _convert_ical_to_annotations(ical_data, tags): ical_annotations = [] ical_calendar = icalendar.Calendar.from_ical(ical_data) - date_max = datetime.date.today() + relativedelta(years=1) + date_max = datetime.date.today() + relativedelta(months=LOOK_AHEAD_MONTHS) ical_events = recurring_ical_events.of( ical_calendar, components=["VEVENT"]