From ea0f27f7f1a74fbf4f55e232ef0118af98a82015 Mon Sep 17 00:00:00 2001 From: SimolZimol <70102430+SimolZimol@users.noreply.github.com> Date: Thu, 12 Sep 2024 15:56:49 +0200 Subject: [PATCH] modified: app.py --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: