From bd496eac3c454deaf56ae0819bf421d6ea552eb5 Mon Sep 17 00:00:00 2001 From: fram3d Date: Thu, 8 Feb 2024 18:01:43 +0100 Subject: [PATCH] generate event page in prep from the whole page --- prep.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/prep.py b/prep.py index 2f540565..37afe219 100755 --- a/prep.py +++ b/prep.py @@ -91,7 +91,7 @@ page_template = "" # Build Serbian Events page new_events_html = build_html(new_events, DAYS_SR) with open("pages/sr/events.html", "r") as file: - page_template = ([line for line in file])[:2] + page_template = ([line for line in file]) with open("pages/sr/events.html", "w") as file: file.writelines(page_template + new_events_html) @@ -99,7 +99,7 @@ with open("pages/sr/events.html", "w") as file: # Build English Events page new_events_html = build_html(new_events, DAYS_EN) with open("pages/en/events.html", "r") as file: - page_template = ([line for line in file])[:2] + page_template = ([line for line in file]) with open("pages/en/events.html", "w") as file: file.writelines(page_template + new_events_html) @@ -107,7 +107,7 @@ with open("pages/en/events.html", "w") as file: # Build Serbian Archive page past_events_html = build_html(past_events, DAYS_SR) with open("pages/sr/events_archive.html", "r") as file: - page_template = ([line for line in file])[:2] + page_template = ([line for line in file]) with open("pages/sr/events_archive.html", "w") as file: file.writelines(page_template + past_events_html) @@ -115,7 +115,7 @@ with open("pages/sr/events_archive.html", "w") as file: # Build English Archive page past_events_html = build_html(past_events, DAYS_EN) with open("pages/en/events_archive.html", "r") as file: - page_template = ([line for line in file])[:2] + page_template = ([line for line in file]) with open("pages/en/events_archive.html", "w") as file: file.writelines(page_template + past_events_html)