From ed605a243d6fa18a8a8d3ec927ab6445092ef3a1 Mon Sep 17 00:00:00 2001 From: Aapo Laakkio <47868046+ApsiV11@users.noreply.github.com> Date: Sun, 12 Jan 2025 19:11:13 +0200 Subject: [PATCH] Use ISO weeks --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.py b/utils.py index d04e541..34eea76 100644 --- a/utils.py +++ b/utils.py @@ -12,7 +12,7 @@ # following week (week 2). timedelta correction below takes into account this and a fact # that datetime library consideres week 1 to be the year's first week that starts from Monday, # which differs from finnish convention. Correction is different every year. -week = (date.today()+timedelta(days=6)).strftime('%W') +week = (date.today()+timedelta(days=6)).strftime('%V') categories = ["Opinnot", "Killan tapahtumat", "Muut tapahtumat", "Yleistä"] categories_en = ["Studies", "Guild's events", "Other events", "General"]