fix hid in details of device

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

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):