summaryrefslogtreecommitdiff
path: root/quiz.py
diff options
context:
space:
mode:
authorSenni Heidari <sheidar2@local>2023-11-21 11:36:12 +0200
committerSenni Heidari <sheidar2@local>2023-11-21 11:36:12 +0200
commitb868d0ba58384fce5a9a45ae153dee9815327d55 (patch)
tree2d73e810cad9eba76121f28b07eeb49bf3f9e573 /quiz.py
parent2ebfcf29c84b84999b76ff13150ba5a13fd3cac1 (diff)
Update directory hierarchy
Diffstat (limited to 'quiz.py')
-rw-r--r--quiz.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/quiz.py b/quiz.py
deleted file mode 100644
index a136209..0000000
--- a/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("/new_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")