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