from flask import Blueprint, render_template, session from ice_breaking_challenge import quiz_results bp = Blueprint("quiz", __name__, url_prefix="/quiz") @bp.route("/", methods=["GET"]) def quiz(): """quiz""" quizzes = quiz_results[session.sid] return render_template("quiz.html", quizzes=quizzes, length=len(quizzes)) @bp.route("/finish", methods=["GET"]) def finish(): return render_template("finish.html")