fix hid in details of device

This commit is contained in:
Cayo Puigdefabregas 2024-10-16 17:40:00 +02:00
parent c422eaddeb
commit d8b6d3ded6

View file

@ -90,9 +90,11 @@ class Device:
def get_hids(self):
annotations = self.get_annotations()
algos = list(ALGOS.keys())
algos.append('CUSTOM_ID')
self.hids = list(set(annotations.filter(
type=Annotation.Type.SYSTEM,
key__in=ALGOS.keys(),
key__in=algos,
).values_list("value", flat=True)))
def get_evidences(self):