diff options
Diffstat (limited to 'routes.py')
-rw-r--r-- | routes.py | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -7,8 +7,6 @@ def get_alert(): del session["alert"] return f"{alert}" return "" - - @app.route("/") def index(): @@ -21,21 +19,25 @@ def info(): @app.route("/pages/create.html") def create(): if "id" not in session: - return render_template("nick.html", alert=get_alert() ) + return "redirect = #nick" return render_template("create.html", alert=get_alert() ) @app.route("/pages/answer.html") def answer(): if "id" not in session: - return render_template("nick.html", alert=get_alert() ) + return "redirect = #nick" return render_template("answer.html", alert=get_alert() ) @app.route("/pages/analyse.html") def analyse(): if "id" not in session: - return render_template("nick.html", alert=get_alert() ) + return "redirect = #nick" return render_template("analyse.html", alert=get_alert() ) @app.route("/pages/moderate.html") def moderate(): return render_template("moderate.html", alert=get_alert() ) + +@app.route("/pages/nick.html") +def nick(): + return render_template("nick.html", alert=get_alert() ) |