Skip to content
Snippets Groups Projects

Introduce "year" as (optional) parameter to /load-calendar

Merged Simon Leinen requested to merge 42_timeless_urls into master
  1. Dec 17, 2023
    • Simon Leinen's avatar
      Update copyright years · 06f1e414
      Simon Leinen authored
      Verified
      06f1e414
    • Simon Leinen's avatar
      Removed code for pre-2022 calendars · 3bd13d60
      Simon Leinen authored
      These don't seem to be available anymore anyway.
      
      Also added new (since 2024) "mobiler_recyclinghof", with a slightly
      different URL variant.
      Verified
      3bd13d60
    • Simon Leinen's avatar
      Introduce "year" as (optional) parameter to /load-calendar · 8bf306bc
      Simon Leinen authored
      The /load-calendar handler now takes the year as an argument.  This
      defaults to the current year, or the next year when called late in the
      year, i.e. in November or December.
      
      The encoding of the URL pattern used since 2022 has been simplified so
      that the same pattern can be used independently of the year, as long
      as data.stadt-zuerich.ch sticks to their own convention.  Ideally,
      this will make it unnecessary to modify this code in the future just
      to load next year's calendars.
      
      Also, diagnostic messages have been improved a bit when loading a
      calendar fails.
      Verified
      8bf306bc
Loading