diff --git a/prep.py b/prep.py index 4c4b415..8cfd463 100644 --- a/prep.py +++ b/prep.py @@ -70,7 +70,7 @@ events = load_events() events = sort_events(events) write_events(events) -events = [] +newevents = [] for event in events: date, time, location, title = event.split(", ") @@ -88,14 +88,14 @@ for event in events: else: future_event.append(" "+location.strip()+" ") future_event.append(" "+title+" ") - events.append("\n"+"\n".join(future_event)+"\n") + newevents.append("\n"+"\n".join(future_event)+"\n") with open("pages/sr/events.html","wt") as file: file.writelines(["

Događaji

\n", "\n", "\n"]) - file.writelines(events) + file.writelines(newevents) file.writelines(["
DatumVremeMestoTema
"]) #with open("pages/en/events.html","wt") as file: # file.writelines(["

Events

", "", "\n\n\n\n\n"]) # file.writelines(events) -# file.writelines(["
DateTimePlaceTheme
"]) \ No newline at end of file +# file.writelines([""])