From 8ce8ac6b56607a68519c051301f8a54b00864001 Mon Sep 17 00:00:00 2001 From: SimolZimol <70102430+SimolZimol@users.noreply.github.com> Date: Sat, 14 Sep 2024 11:17:13 +0200 Subject: [PATCH] modified: app.py modified: bot.py --- app.py | 3 +-- bot.py | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 4bd1f53..08009e2 100644 --- a/app.py +++ b/app.py @@ -216,8 +216,7 @@ def admin_dashboard(): connection.close() if user_data and user_data["permission"] >= 8: - bot_running=bot_status() - return render_template("admin_dashboard.html", user_info=user_info, bot_running=bot_running) + return render_template("admin_dashboard.html", user_info=user_info, bot_running=bot_status()) else: return redirect(url_for("user_dashboard")) return redirect(url_for("landing_page")) diff --git a/bot.py b/bot.py index c06a4d2..d8eb046 100644 --- a/bot.py +++ b/bot.py @@ -390,6 +390,7 @@ async def check_giveaway(giveaway_id): # Jeden Gewinner benachrichtigen und zur Webseite schicken for winner in winners: + user_data = load_user_data(winner.id) # Gewinner in der Datenbank speichern (winner_dc_id) update_winner_in_db(giveaway.prize_uuid, winner.id) # Nachricht an den Gewinner senden