Merge pull request 'device: avoid hids duplication' (#4) from tau_hids-dup into tau

Reviewed-on: #4
This commit is contained in:
cayop 2024-09-26 09:56:48 +00:00
commit fc0bb95017

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: