modified: app.py

modified:   bot.py
This commit is contained in:
SimolZimol
2024-09-14 11:17:13 +02:00
parent 8a99aba736
commit 8ce8ac6b56
2 changed files with 2 additions and 2 deletions

3
app.py
View File

@@ -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"))

1
bot.py
View File

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