Compare commits

...

2 commits

Author SHA1 Message Date
cayop fc0bb95017 Merge pull request 'device: avoid hids duplication' (#4) from tau_hids-dup into tau
Reviewed-on: #4
2024-09-26 09:56:48 +00:00
pedro 58c0e9059a device: avoid hids duplication 2024-09-26 00:10:48 -03:00

View file

@ -89,10 +89,10 @@ class Device:
def get_hids(self):
annotations = self.get_annotations()
self.hids = annotations.filter(
self.hids = list(set(annotations.filter(
type=Annotation.Type.SYSTEM,
key__in=ALGOS.keys(),
).values_list("value", flat=True)
).values_list("value", flat=True)))
def get_evidences(self):
if not self.uuids: