modified: app.py

modified:   templates/index.html
This commit is contained in:
SimolZimol
2024-09-03 13:26:16 +02:00
parent 71b3c3e8e5
commit 0273e2cef2
2 changed files with 1 additions and 5 deletions

3
app.py
View File

@@ -74,8 +74,7 @@ def get_db_connection():
@app.route("/")
def index():
if "username" in session:
bot_stats = get_bot_statistics()
return render_template("index.html", bot_running=bot_status(), **bot_stats)
return render_template("index.html", bot_running=bot_status())
return redirect(url_for("login"))
@app.route("/login", methods=["GET", "POST"])