This commit is contained in:
Cayo Puigdefabregas 2025-02-11 17:25:30 +01:00 committed by pedro
parent bd1efe3adc
commit ccaa8834dc
2 changed files with 5 additions and 3 deletions

View file

@ -106,10 +106,10 @@ class PublicDeviceWebView(TemplateView):
'device': {},
}
dev = Build(self.object.last_evidence.doc, None, check=True)
doc = dev.get_phid()
doc = dev.get_doc()
data['document'] = json.dumps(doc)
data['device'] = dev.device
data['components'] = dev.components
data['device'] = doc.device
data['components'] = doc.components
self.object.get_evidences()
last_dpp = Proof.objects.filter(

View file

@ -52,6 +52,8 @@ class BuildMix:
for c in components:
doc.append((c.get("type"), self.get_id_hw_dpp(c)))
return doc
def get_id_hw_dpp(self, d):
algorithm = ALGOS.get("ereuse22", [])
hid = ""