From 8c84b70c332f47d5b69c623d28bd102fa77ad060 Mon Sep 17 00:00:00 2001 From: polyfloyd Date: Sun, 25 Feb 2024 13:52:49 +0100 Subject: [PATCH] fix: Bump time offset in query Bad temporary fix, but for some reason MediaWiki seems really picky about its timestamp format --- calendarparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendarparser.py b/calendarparser.py index 9ad2f39..5113b7f 100755 --- a/calendarparser.py +++ b/calendarparser.py @@ -10,7 +10,7 @@ import re import sys OFFSET = -time.timezone -events_url = "https://bitlair.nl/Special:Ask/-5B-5BCategory:Event-5D-5D-20-5B-5BStart::%E2%89%A519-20January-202023-5D-5D/-3FStart/-3FEnd/-3FEvent-20location/mainlabel%3D/limit%3D50/order%3DASC/sort%3DStart/prettyprint%3Dtrue/format%3Djson" +events_url = "https://bitlair.nl/Special:Ask/-5B-5BCategory:Event-5D-5D-20-5B-5BStart::%E2%89%A519-20January-202024-5D-5D/-3FStart/-3FEnd/-3FEvent-20location/mainlabel%3D/limit%3D50/order%3DASC/sort%3DStart/prettyprint%3Dtrue/format%3Djson" # above URL asks for all events and returns their name, start, end and location events_page = requests.get(events_url) events = events_page.json()