From 2a94e19cbbc0d1d68f6c25e1619ad90e921838f0 Mon Sep 17 00:00:00 2001 From: SimolZimol <70102430+SimolZimol@users.noreply.github.com> Date: Thu, 24 Oct 2024 16:43:19 +0200 Subject: [PATCH] modified: app.py modified: templates/global_admin_dashboard.html --- app.py | 3 ++- templates/global_admin_dashboard.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index c53512b..d650b18 100644 --- a/app.py +++ b/app.py @@ -331,7 +331,8 @@ def global_admin_dashboard(): if session.get("is_admin"): user_info = session['discord_user'] bot_running = bot_status() # Funktion, die den Status des Bots prüft - return render_template("global_admin_dashboard.html", user_info=user_info, bot_running=bot_running) + guild_id = None # Stelle sicher, dass guild_id korrekt zugewiesen ist + return render_template("global_admin_dashboard.html", user_info=user_info, bot_running=bot_running, guild_id=guild_id) return redirect(url_for("user_landing_page")) @app.route("/logout") diff --git a/templates/global_admin_dashboard.html b/templates/global_admin_dashboard.html index 2133332..1d5f75d 100644 --- a/templates/global_admin_dashboard.html +++ b/templates/global_admin_dashboard.html @@ -14,7 +14,7 @@