Defect Fix
This commit is contained in:
parent
e92d76cafd
commit
ef294aa1c5
1 changed files with 1 additions and 1 deletions
2
log.py
2
log.py
|
@ -168,7 +168,7 @@ class logsManager:
|
||||||
conn = pyodbc.connect(self.conn_str)
|
conn = pyodbc.connect(self.conn_str)
|
||||||
cursor = conn.cursor()
|
cursor = conn.cursor()
|
||||||
|
|
||||||
if live == 0:
|
if int(live) == 0:
|
||||||
|
|
||||||
if loggingMode == 'mssql' or loggingMode == 'mariadb':
|
if loggingMode == 'mssql' or loggingMode == 'mariadb':
|
||||||
cursor.execute("UPDATE monutil_ipblock SET live = 0 WHERE hostname = ? AND blockedIPAddress = ? AND jail = ? AND live = 1", hostname, blockedIPAddress, jail)
|
cursor.execute("UPDATE monutil_ipblock SET live = 0 WHERE hostname = ? AND blockedIPAddress = ? AND jail = ? AND live = 1", hostname, blockedIPAddress, jail)
|
||||||
|
|
Loading…
Reference in a new issue