should be an improvement
This commit is contained in:
parent
3c1eaec6d2
commit
0e20106089
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user