Merge pull request #3532 from lade-odoo/master-restore_bans_with_full_ticket_info-lade

Restore bans from the database with full ticket information
pull/3539/head
Sergey G. Brester 2023-06-22 13:38:53 +02:00 committed by GitHub
commit 48c91dfb6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -289,7 +289,7 @@ class Jail(object):
): ):
try: try:
#logSys.debug('restored ticket: %s', ticket) #logSys.debug('restored ticket: %s', ticket)
if self.filter.inIgnoreIPList(ticket.getID(), log_ignore=True): continue if self.filter._inIgnoreIPList(ticket.getID(), ticket): continue
# mark ticked was restored from database - does not put it again into db: # mark ticked was restored from database - does not put it again into db:
ticket.restored = True ticket.restored = True
# correct start time / ban time (by the same end of ban): # correct start time / ban time (by the same end of ban):