From 0273e2cef23334a098e504ddc8101737b90abbc7 Mon Sep 17 00:00:00 2001 From: SimolZimol <70102430+SimolZimol@users.noreply.github.com> Date: Tue, 3 Sep 2024 13:26:16 +0200 Subject: [PATCH] modified: app.py modified: templates/index.html --- app.py | 3 +-- templates/index.html | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/app.py b/app.py index 42472eb..ff3c04b 100644 --- a/app.py +++ b/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"]) diff --git a/templates/index.html b/templates/index.html index e2df428..3899bbc 100644 --- a/templates/index.html +++ b/templates/index.html @@ -28,9 +28,6 @@ User Management Logout -
Bot Statistics
-

Total Messages Processed: {{ total_messages }}

-

Most Used Command: {{ most_used_command }}