mirror of
https://github.com/csd4ni3l/grass_touching_captcha.git
synced 2026-01-01 04:23:45 +01:00
fix wrong order of values in insert
This commit is contained in:
2
main.py
2
main.py
@@ -146,7 +146,7 @@ def upload():
|
||||
if cur.fetchone():
|
||||
return Response("You can touch grass multiple times. I believe in you. Dont submit the same images.", 400)
|
||||
|
||||
cur.execute("INSERT INTO Images (image_hash, username, filename) VALUES (?, ?, ?)", (image_hash, image_uuid, username))
|
||||
cur.execute("INSERT INTO Images (image_hash, username, filename) VALUES (?, ?, ?)", (image_hash, username, image_uuid))
|
||||
get_db().commit()
|
||||
|
||||
with open(f"{UPLOAD_DIR}/{image_uuid}.{image_type}", "wb") as file:
|
||||
|
||||
Reference in New Issue
Block a user