From 103515567afb4895ed8b937a5d59d245673624f6 Mon Sep 17 00:00:00 2001 From: SimolZimol <70102430+SimolZimol@users.noreply.github.com> Date: Fri, 6 Sep 2024 15:52:18 +0200 Subject: [PATCH] modified: app.py modified: templates/logs.html modified: templates/settings.html modified: templates/users.html --- app.py | 14 ++------------ templates/logs.html | 2 +- templates/settings.html | 2 +- templates/users.html | 2 +- 4 files changed, 5 insertions(+), 15 deletions(-) diff --git a/app.py b/app.py index 7c61f1b..0e07383 100644 --- a/app.py +++ b/app.py @@ -206,16 +206,6 @@ def user_dashboard(): return "User data not found", 404 return redirect(url_for("login")) -@app.route("/dashboard") -def dashboard(): - """Das Dashboard nach erfolgreicher Authentifizierung.""" - if "discord_user" not in session: - return redirect(url_for("login")) - - user_info = session['discord_user'] - return render_template("index.html", user_info=user_info) - - @app.route("/logout") def logout(): """Löscht die Benutzersitzung und meldet den Benutzer ab.""" @@ -227,14 +217,14 @@ def logout(): def start(): if "username" in session: start_bot() - return redirect(url_for("index")) + return redirect(url_for("admin_dashboard")) return redirect(url_for("login")) @app.route("/stop_bot") def stop(): if "username" in session: stop_bot() - return redirect(url_for("index")) + return redirect(url_for("admin_dashboard")) return redirect(url_for("login")) @app.route("/settings", methods=["GET", "POST"]) diff --git a/templates/logs.html b/templates/logs.html index 39b0190..7e8d5bd 100644 --- a/templates/logs.html +++ b/templates/logs.html @@ -17,7 +17,7 @@ Download Logs

-                Back to Dashboard
+                Back to Dashboard
             
         
     
diff --git a/templates/settings.html b/templates/settings.html
index 73c36d1..c546e65 100644
--- a/templates/settings.html
+++ b/templates/settings.html
@@ -22,7 +22,7 @@
                     
                     
                 
-                Back to Dashboard
+                Back to Dashboard
             
         
     
diff --git a/templates/users.html b/templates/users.html
index 9fa703b..25d62a6 100644
--- a/templates/users.html
+++ b/templates/users.html
@@ -51,7 +51,7 @@
                 {% endfor %}
             
         
-        Back to Dashboard
+        Back to Dashboard