From 0e201060894da681b90a0a8dab885c3e01677073 Mon Sep 17 00:00:00 2001 From: jenz Date: Sat, 30 Mar 2024 20:30:42 +0100 Subject: [PATCH] should be an improvement --- jenz_ban_detector/python/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)