From e852c477ade065ef414a143661400b2863d761d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Magalh=C3=A3es?= Date: Tue, 21 Dec 2021 00:20:30 +0000 Subject: [PATCH] Fix filters To compare for "not equal" values you should invert the match, not directly compare with the string prepended with "!". --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index f4ba7c3..6b45af2 100755 --- a/server.py +++ b/server.py @@ -304,7 +304,7 @@ class LogItem(): def pass_filter(self): for filter, filterValue in self.filters.items(): jsonValue = util.getFields(self.feed, filter) - if jsonValue is None or jsonValue != filterValue: + if jsonValue is None or ("!" not in filterValue and jsonValue != filterValue) or ("!" in filterValue and jsonValue == filterValue.strip("!")): return False return True