Grab current years calendar

This commit is contained in:
sqozz 2021-10-07 12:06:54 +02:00
parent ca43be7db3
commit 63f086651c

View file

@ -1,5 +1,6 @@
import configparser
import icalendar
import datetime
import requests
import urllib
import json
@ -11,6 +12,7 @@ def read_config():
return config
config = read_config()
current_year = datetime.datetime.now().year
# request locations supportet by the endpoint
# https://nuernberg-abfallapp.regioit.de/abfall-app-nuernberg/rest/orte
@ -49,7 +51,7 @@ for trash_type in trash_types:
query = {
"format": ["ics"],
"jahr": ["2019"],
"jahr": [current_year],
"ort": ["Nürnberg"],
"strasse": [street_id],
"hnr": [housenumber_id],