Skip to content

Commit

Permalink
enable recurrent events in ical-proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
portswigger-tim committed Oct 17, 2023
1 parent 1d7780e commit 1a43892
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ical-proxy/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
CACHE = TTLCache(maxsize=1000, ttl=CACHE_TTL)

DATE_MIN = (1970, 1, 1)
LOOK_AHEAD_MONTHS = 6

app = Flask(__name__)

Expand Down Expand Up @@ -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"]
Expand Down

0 comments on commit 1a43892

Please sign in to comment.