Correction
This commit is contained in:
parent
814eb199bb
commit
38ec600ddc
1 changed files with 1 additions and 2 deletions
3
log.py
3
log.py
|
@ -352,8 +352,7 @@ class logsManager:
|
|||
|
||||
elif logType == 'iplogs':
|
||||
|
||||
deleteQuery = f"DELETE FROM monutil_geoip WHERE logID IN (
|
||||
SELECT logID FROM monutil_ipblock WHERE {logTimeColumn} < ?)"
|
||||
deleteQuery = f"DELETE FROM monutil_geoip WHERE logID IN (SELECT logID FROM monutil_ipblock WHERE {logTimeColumn} < ?)"
|
||||
|
||||
cursor.execute(deleteQuery, datetime.now() - timedelta(days=int(logRetentionDaysIPBlock)))
|
||||
conn.commit()
|
||||
|
|
Loading…
Add table
Reference in a new issue