modified: app.py
modified: templates/index.html
This commit is contained in:
3
app.py
3
app.py
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user