From 2faee0597b676fc269cb8c4057bd8dbf120556e9 Mon Sep 17 00:00:00 2001 From: Philipp Spitzer Date: Thu, 9 Nov 2023 22:41:37 +0100 Subject: [PATCH] Implement parameter "all". --- scripts/update_sledrun_wikitext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update_sledrun_wikitext.py b/scripts/update_sledrun_wikitext.py index 77fb1e3..075dd88 100644 --- a/scripts/update_sledrun_wikitext.py +++ b/scripts/update_sledrun_wikitext.py @@ -74,7 +74,7 @@ def update_sledrun_wikitext(ini_files: List[str], update_all: bool): assert wikitext_page['title'] + '/Rodelbahn.json' == json_page['title'] if 'missing' in json_page: continue - if wikitext_page['revisions'][0]['timestamp'] < json_page['revisions'][0]['timestamp']: + if update_all or (wikitext_page['revisions'][0]['timestamp'] < json_page['revisions'][0]['timestamp']): update_wikitext_title_list.append(wikitext_page['title']) update_json_title_list.append(json_page['title']) -- 2.39.5