Bug Fix
This commit is contained in:
parent
512f94d7f6
commit
0ebd1abdd7
1 changed files with 22 additions and 22 deletions
2
log.py
2
log.py
|
@ -112,7 +112,7 @@ class logsManager:
|
|||
cursor = conn.cursor()
|
||||
timeThreshold = datetime.now() - timedelta(days=1)
|
||||
|
||||
cursor.execute("SELECT blockedipaddress, hostname, city, region, country, loc, org, postal, timezone FROM monutil_geoip WHERE logtime >= ?", timeThreshold)
|
||||
cursor.execute("SELECT blockedipaddress, monutil_geoip.hostname, city, region, country, loc, org, postal, timezone FROM monutil_geoip INNER JOIN monutil_ipblock ON monutil_geoip.logID = monutil_ipblock.logID WHERE logtime >= ? AND blockedipaddress = ?", timeThreshold, ip)
|
||||
|
||||
rows = cursor.fetchall()
|
||||
|
||||
|
|
Loading…
Reference in a new issue