diff --git a/app.py b/app.py index 99f55f9..a3ef81d 100644 --- a/app.py +++ b/app.py @@ -479,7 +479,7 @@ def user_giveaways(): # Suche nach Giveaways, bei denen der eingeloggte Benutzer der Gewinner ist cursor.execute(""" - SELECT * FROM giveaways WHERE winner_dc_id = %s AND aktiv = TRUE + SELECT * FROM giveaways WHERE winner_dc_id = %s """, (user_id,)) won_giveaways = cursor.fetchall() @@ -501,7 +501,7 @@ def redeem_giveaway(uuid): cursor = connection.cursor(dictionary=True) # Überprüfen, ob der eingeloggte Benutzer der Gewinner ist - cursor.execute("SELECT * FROM giveaways WHERE uuid = %s AND winner_dc_id = %s AND aktiv = TRUE", (uuid, user_id)) + cursor.execute("SELECT * FROM giveaways WHERE uuid = %s AND winner_dc_id = %s", (uuid, user_id)) giveaway = cursor.fetchone() if giveaway: