diff options
author | Jani Peter Karhunen <jkarhun2@local> | 2023-11-25 03:32:29 +0200 |
---|---|---|
committer | Jani Peter Karhunen <jkarhun2@local> | 2023-11-25 03:32:29 +0200 |
commit | d2de3ae10b6f5314bd4b8243218212d2004f35b0 (patch) | |
tree | 2ab448e0c2ec361478851dbcb43bcd176d17b584 /routes/get/quiz.py | |
parent | c059696450d301b99956d643c21b0e46b4fc39dc (diff) |
MEGA Commit. Rework of routing. Visuals. Answer analysis and much more.
Diffstat (limited to 'routes/get/quiz.py')
-rw-r--r-- | routes/get/quiz.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/routes/get/quiz.py b/routes/get/quiz.py deleted file mode 100644 index 69e2613..0000000 --- a/routes/get/quiz.py +++ /dev/null @@ -1,18 +0,0 @@ -from app import app -from flask import render_template, session, request, redirect, jsonify -import db_actions as D - - -@app.route("/get/quiz_creator",methods=["GET"]) -def get_questions_by_id(): - if "quiz_id" not in session.keys(): - return "KUOLETTAVA: Sessiota / kyselmä id:tä ei ole" - - results = D.get_questions(session['quiz_id']) - r={} - names=['i','q','n','p','a'] - for i in range(len(results)): - r[i]={} - for j in range(len(results[i])): - r[i][names[j]]=results[i][j] - return (jsonify(r)) |