Skip to content

Commit

Permalink
Restore old iCal behaviour but a bit smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
russss committed Sep 12, 2024
1 parent 316117c commit 92a71d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ps.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ def previous():
@app.route("/next.ics")
@app.route("/all.ics")
def ics():
return events_to_ical(next_events(), "Pub Standards Events")
next_year = utc_now() + datetime.timedelta(weeks=52)
return events_to_ical(ps_data.events(end=next_year), "Pub Standards Events")


@app.route('/event/pub-standards-<regex("[ivxcdmlIVXCDML]+"):numeral>')
Expand Down

0 comments on commit 92a71d0

Please sign in to comment.