mirror of
https://github.com/FAUSheppy/flask-json-dream-website
synced 2025-12-06 08:11:35 +01:00
remove obsolete hardcoding
This commit is contained in:
@@ -156,14 +156,12 @@ def invalidateEventCache():
|
|||||||
|
|
||||||
@app.route("/")
|
@app.route("/")
|
||||||
def root():
|
def root():
|
||||||
navbarLinks = [("test", "contact"),("test", "contact"),("test", "contact"),("test", "contact")]
|
|
||||||
return flask.render_template("index.html", conf=app.config,
|
return flask.render_template("index.html", conf=app.config,
|
||||||
mainLinks=readJsonDir(app.config["MAIN_LINKS_DIR"]),
|
mainLinks=readJsonDir(app.config["MAIN_LINKS_DIR"]),
|
||||||
events=getEventsCache(),
|
events=getEventsCache(),
|
||||||
moreEvents=len(getEventsCache())>3,
|
moreEvents=len(getEventsCache())>3,
|
||||||
sections=readJsonDir(app.config["SECTIONS_DIR"]),
|
sections=readJsonDir(app.config["SECTIONS_DIR"]),
|
||||||
announcements=parseNewsDirWithTimeout(),
|
announcements=parseNewsDirWithTimeout())
|
||||||
navbarLinks=navbarLinks)
|
|
||||||
|
|
||||||
@app.route("/impressum")
|
@app.route("/impressum")
|
||||||
def impressum():
|
def impressum():
|
||||||
|
|||||||
Reference in New Issue
Block a user