i think its finished
This commit is contained in:
@@ -17,7 +17,7 @@ class VerificationModal(ui.Modal, title='Server Verification'):
|
||||
|
||||
try:
|
||||
# Connect using your Postgres credentials
|
||||
conn = psycopg2.connect(database=os.environ.get("POSTGRES_DB"), username=os.environ.get("POSTGRES_USER"), password=os.environ.get("POSTGRES_PASSWORD"))
|
||||
conn = psycopg2.connect(database=os.environ.get("POSTGRES_DB"), user=os.environ.get("POSTGRES_USER"), password=os.environ.get("POSTGRES_PASSWORD"), host="db")
|
||||
with conn.cursor() as cursor:
|
||||
# Postgres uses %s as placeholders instead of ?
|
||||
cursor.execute("SELECT id, discord_user_id FROM participant WHERE discord_token = %s", (token,))
|
||||
|
||||
Reference in New Issue
Block a user