Skip to content

Commit

Permalink
fix fault in ics scraper
Browse files Browse the repository at this point in the history
caused by next year handing and therefore only appears in december
  • Loading branch information
mampfes committed Dec 3, 2021
1 parent a961a30 commit efba504
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ def fetch(self):
if now.month == 12:
# also get data for next year if we are already in december
url = self._url.replace("{%Y}", str(now.year + 1))
self._params[self._year_field] = str(now.year + 1)
if self._year_field is not None:
self._params[self._year_field] = str(now.year + 1)

try:
entries.extend(self.fetch_url(url), self._params)
Expand Down

0 comments on commit efba504

Please sign in to comment.