fix bug
This commit is contained in:
parent
bd1efe3adc
commit
ccaa8834dc
|
@ -106,10 +106,10 @@ class PublicDeviceWebView(TemplateView):
|
||||||
'device': {},
|
'device': {},
|
||||||
}
|
}
|
||||||
dev = Build(self.object.last_evidence.doc, None, check=True)
|
dev = Build(self.object.last_evidence.doc, None, check=True)
|
||||||
doc = dev.get_phid()
|
doc = dev.get_doc()
|
||||||
data['document'] = json.dumps(doc)
|
data['document'] = json.dumps(doc)
|
||||||
data['device'] = dev.device
|
data['device'] = doc.device
|
||||||
data['components'] = dev.components
|
data['components'] = doc.components
|
||||||
|
|
||||||
self.object.get_evidences()
|
self.object.get_evidences()
|
||||||
last_dpp = Proof.objects.filter(
|
last_dpp = Proof.objects.filter(
|
||||||
|
|
|
@ -52,6 +52,8 @@ class BuildMix:
|
||||||
for c in components:
|
for c in components:
|
||||||
doc.append((c.get("type"), self.get_id_hw_dpp(c)))
|
doc.append((c.get("type"), self.get_id_hw_dpp(c)))
|
||||||
|
|
||||||
|
return doc
|
||||||
|
|
||||||
def get_id_hw_dpp(self, d):
|
def get_id_hw_dpp(self, d):
|
||||||
algorithm = ALGOS.get("ereuse22", [])
|
algorithm = ALGOS.get("ereuse22", [])
|
||||||
hid = ""
|
hid = ""
|
||||||
|
|
Loading…
Reference in a new issue