should be an improvement

This commit is contained in:
jenz 2024-03-30 20:30:42 +01:00
parent 3c1eaec6d2
commit 0e20106089

View File

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