i think its finished

This commit is contained in:
2026-01-12 20:00:43 +01:00
parent 0982a0bd7b
commit 009f5f7db7
9 changed files with 184 additions and 11 deletions

View File

@@ -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,))