From 9bb8884836b5dd86d7c9e2a3a53d29445ebb8e60 Mon Sep 17 00:00:00 2001 From: Davide Gessa Date: Thu, 14 May 2026 13:12:29 +0200 Subject: [PATCH 1/2] dynamic year --- Makefile | 2 +- scoring.py | 3 ++- src/App.svelte | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 3ca03bb9e..bc5ac20be 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ COUNTRIES = ARG AUS AUT BRA BUL CAN CRO CYP DEN ECU ESP EST FIN FRA GBR \ POL POR ROU RSA RUS SLO SUI SWE TUR UKR USA -YEAR = 2025 +YEAR = $(shell date +%Y) JSON_FILES = $(addprefix data/$(YEAR)/, $(addsuffix $(YEAR).json, $(COUNTRIES))) diff --git a/scoring.py b/scoring.py index 4625dd6f6..89754f52b 100755 --- a/scoring.py +++ b/scoring.py @@ -3,12 +3,13 @@ from __future__ import print_function import sys +from datetime import date from parser.json_output import jsonwriter_extremes, jsonwriter_site, jsonwriter_list from parser.parser import parse_json_glob from parser.util import log -YEAR = 2025 +YEAR = date.today().year if __name__ == "__main__": # display help: diff --git a/src/App.svelte b/src/App.svelte index 2115169e2..bd6ca212d 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -45,7 +45,7 @@ $: if (route == 'random') {