Merge pull request 'device: avoid hids duplication' (#4) from tau_hids-dup into tau
Reviewed-on: #4
This commit is contained in:
commit
fc0bb95017
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue