diff --git a/jenz_ban_detector/python/app.py b/jenz_ban_detector/python/app.py index 404b5fbd..1950784d 100644 --- a/jenz_ban_detector/python/app.py +++ b/jenz_ban_detector/python/app.py @@ -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)