diff options
Diffstat (limited to 'routes/set/quiz.py')
-rw-r--r-- | routes/set/quiz.py | 13 |
1 files changed, 0 insertions, 13 deletions
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") |