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
|
# Suche nach Giveaways, bei denen der eingeloggte Benutzer der Gewinner ist
|
||||||
cursor.execute("""
|
cursor.execute("""
|
||||||
SELECT * FROM giveaways WHERE winner_dc_id = %s AND aktiv = TRUE
|
SELECT * FROM giveaways WHERE winner_dc_id = %s
|
||||||
""", (user_id,))
|
""", (user_id,))
|
||||||
won_giveaways = cursor.fetchall()
|
won_giveaways = cursor.fetchall()
|
||||||
|
|
||||||
@@ -501,7 +501,7 @@ def redeem_giveaway(uuid):
|
|||||||
cursor = connection.cursor(dictionary=True)
|
cursor = connection.cursor(dictionary=True)
|
||||||
|
|
||||||
# Überprüfen, ob der eingeloggte Benutzer der Gewinner ist
|
# Ü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()
|
giveaway = cursor.fetchone()
|
||||||
|
|
||||||
if giveaway:
|
if giveaway:
|
||||||
|
|||||||
Reference in New Issue
Block a user