From b868d0ba58384fce5a9a45ae153dee9815327d55 Mon Sep 17 00:00:00 2001 From: Senni Heidari Date: Tue, 21 Nov 2023 11:36:12 +0200 Subject: Update directory hierarchy --- quiz.py | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 quiz.py (limited to 'quiz.py') 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") -- cgit v1.2.3