From 7ebf7078ffbc35b58046d6faa9e1c9599fa16e69 Mon Sep 17 00:00:00 2001 From: Txrpe Date: Sun, 8 Dec 2024 20:10:58 +0100 Subject: [PATCH] Load templates instead of old pages for events_archive --- prep.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prep.py b/prep.py index f6e1c1c..5f884e2 100755 --- a/prep.py +++ b/prep.py @@ -157,7 +157,7 @@ with open("pages/en/events.html", "w") as file: # Build Serbian Archive page past_events_html = build_html(past_events, DAYS_SR, sr_types) -with open("pages/sr/events_archive.html", "r") as file: +with open("template/events_archive-sr.html", "r") as file: page_template = ([line for line in file]) with open("pages/sr/events_archive.html", "w") as file: @@ -165,7 +165,7 @@ with open("pages/sr/events_archive.html", "w") as file: # Build English Archive page past_events_html = build_html(past_events, DAYS_EN, en_types) -with open("pages/en/events_archive.html", "r") as file: +with open("template/events_archive-en.html", "r") as file: page_template = ([line for line in file]) with open("pages/en/events_archive.html", "w") as file: