From: Philipp Spitzer Date: Thu, 9 Nov 2023 21:41:37 +0000 (+0100) Subject: Implement parameter "all". X-Git-Url: https://git.toastfreeware.priv.at/philipp/winterrodeln/wrpylib.git/commitdiff_plain/2faee0597b676fc269cb8c4057bd8dbf120556e9 Implement parameter "all". --- 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'])