From e0d40b58617a5d96c96d71f1dab1a5d830f17661 Mon Sep 17 00:00:00 2001 From: Justin Warren Date: Thu, 12 Jan 2023 09:31:16 +1100 Subject: [PATCH] Fixed bug in severity change detection. --- src/fediblockhole/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fediblockhole/__init__.py b/src/fediblockhole/__init__.py index a98a09a..a13f27c 100755 --- a/src/fediblockhole/__init__.py +++ b/src/fediblockhole/__init__.py @@ -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