Fixed bug in severity change detection.

This commit is contained in:
Justin Warren 2023-01-12 09:31:16 +11:00
parent 327a44d907
commit e0d40b5861
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -497,7 +497,7 @@ def push_blocklist(token: str, host: str, blocklist: list[dict],
# Is the severity changing?
if 'severity' in change_needed:
log.debug("Severity change requested, checking...")
if newseverity > oldblock.severity:
if newblock.severity > oldblock.severity:
# Confirm if we really want to change the severity
# If we still have followers of the remote domain, we may not
# want to go all the way to full suspend, depending on the configuration