From 234c0d576a8f5b664c2b9b978cf64e05c4a4c5f2 Mon Sep 17 00:00:00 2001 From: fram3d Date: Fri, 4 Aug 2023 19:16:46 +0200 Subject: [PATCH] chage incorrect filenames in prep.py --- prep.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/prep.py b/prep.py index 002f0a6..b76db93 100644 --- a/prep.py +++ b/prep.py @@ -48,7 +48,7 @@ def is_past_event(event): def load_events(): events = [] - with open("dogadjaji.txt", "rt") as file: + with open("dogadjaji.csv", "rt") as file: file.readline() for event in file.readlines(): event = event.strip() @@ -57,7 +57,7 @@ def load_events(): return events def write_events(events): - with open("dogadjaji.txt", "wt") as file: + with open("dogadjaji.csv", "wt") as file: file.write("datum, vreme, lokacija, tema\n") for event in events: file.write(event+"\n") @@ -100,7 +100,7 @@ for event in future_events: events.append(end) -with open("pages/dogadjaji.html","rt") as file: +with open("pages/events.html","rt") as file: html = file.readlines() new_html = [] @@ -126,5 +126,5 @@ while i