From d2de3ae10b6f5314bd4b8243218212d2004f35b0 Mon Sep 17 00:00:00 2001 From: Jani Peter Karhunen Date: Sat, 25 Nov 2023 03:32:29 +0200 Subject: MEGA Commit. Rework of routing. Visuals. Answer analysis and much more. --- routes/set/quiz.py | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 routes/set/quiz.py (limited to 'routes/set/quiz.py') diff --git a/routes/set/quiz.py b/routes/set/quiz.py deleted file mode 100644 index 9ad13da..0000000 --- a/routes/set/quiz.py +++ /dev/null @@ -1,13 +0,0 @@ -from app import app -from flask import render_template, session, request, redirect -import db_actions as D - - -@app.route("/set/quiz",methods=["POST"]) -def new_quiz(): - if not "id" in session.keys(): - session["alert"]="Tarvitset nimimerkin loudaksesi" - return redirect("/#nick") - user_id = session["id"] - session["quiz_id"] = D.quiz_new( user_id ) - return redirect("/#create") -- cgit v1.2.3