This commit is contained in:
Mateusz779 2023-04-19 10:23:45 +02:00
parent 6fe743c281
commit d6ed214d99

2
db.py
View File

@ -273,7 +273,7 @@ def update_image_allocation_ip(token, ip):
connect() connect()
with get_cur() as cur: with get_cur() as cur:
cur.execute(""" cur.execute("""
UPDATE image_allocation SET ip = %s WHERE image_id = %s UPDATE image_allocation SET client_ip = %s WHERE image_id = %s
""", (ip, image_id,)) """, (ip, image_id,))
try: try:
conn.commit() conn.commit()