mirror of https://github.com/MISP/misp-dashboard
Fix filters
To compare for "not equal" values you should invert the match, not directly compare with the string prepended with "!".pull/161/head
parent
100948b4df
commit
e852c477ad
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue