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 }}