device: avoid hids duplication #4

Merged
cayop merged 1 commits from tau_hids-dup into tau 2024-09-26 09:56:49 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 59f6ac705c - Show all commits

View File

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