Spaces:
Runtime error
Runtime error
File size: 761 Bytes
df42f36 2e9ea78 e389135 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
from flask import Blueprint
from flask import flash
from flask import g
from flask import redirect
from flask import render_template
from flask import request
from flask import url_for
from werkzeug.exceptions import abort
from flask import session
from .auth import login_required
from .db import get_db
bp = Blueprint("index", __name__)
@bp.route("/", methods=["GET", "POST"])
def index() -> None:
match request.method:
case "GET":
return render_template("index.html")
case "POST": # index.html์์ `๋ค์` ๋ฒํผ ๋๋ ์ ๋
session["team_number"] = int(request.form.get("team_number"))
session["team_size"] = int(request.form.get("team_size"))
return redirect(url_for("qr.qr"))
|