summaryrefslogtreecommitdiff
path: root/app/routes.py
diff options
context:
space:
mode:
authorKaran Jayachandra <mail@karanjayachandra.com>2025-07-14 12:59:31 +0200
committerKaran Jayachandra <mail@karanjayachandra.com>2025-07-14 12:59:31 +0200
commite5316d69dad8e156bd40e1f0204bb34dcd062fb7 (patch)
tree7af89ffd613db6c60666da9877667d07c188f1a9 /app/routes.py
parent729203409fb73fdbac19b8af9d647883a5ac96b0 (diff)
Transitioned to UV
Diffstat (limited to 'app/routes.py')
-rw-r--r--app/routes.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/app/routes.py b/app/routes.py
index ce9b714..f4ec0f2 100644
--- a/app/routes.py
+++ b/app/routes.py
@@ -1,6 +1,5 @@
from app import app
from pandas import read_csv
-from app.forms import LoginForm
from app.controller import Session
from werkzeug.utils import secure_filename
from flask import (
@@ -22,15 +21,6 @@ def home():
return render_template("index.j2", url_for=url_for)
-@app.route("/login", methods=["GET", "POST"])
-def login():
- form = LoginForm()
- if form.validate_on_submit():
- flash(f"User {form.username} is requesting to login.")
- return redirect("/")
- return render_template("login.j2", form=form)
-
-
@app.route("/control", methods=["GET"])
def get_controls():
return render_template("controls.j2", courts=g.courts.all())