modified: app.py
This commit is contained in:
4
app.py
4
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:
|
||||
|
||||
Reference in New Issue
Block a user