should be an improvement

This commit is contained in:
jenz 2024-03-30 20:30:42 +01:00
parent 387e2d13e4
commit 61617df2f5

View File

@ -35,10 +35,10 @@ def get_answer():
x.last_connect = (select last_connect x.last_connect = (select last_connect
from ban_detector.ban_detector x1 from ban_detector.ban_detector x1
where where
x1.ip = x.ip x1.ip = %s
order by last_connect desc limit 1); order by last_connect desc limit 1);
""" """
cur.execute(sql_statement, [name, ip]) cur.execute(sql_statement, [name, ip, ip])
conn.commit() conn.commit()
conn.close() conn.close()
print("comitting content: ", content) print("comitting content: ", content)