From ccaa8834dcc157a615695792289deb2d2580c35d Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 11 Feb 2025 17:25:30 +0100 Subject: [PATCH] fix bug --- did/views.py | 6 +++--- evidence/mixin_parse.py | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/did/views.py b/did/views.py index e0a59e6..c53d47f 100644 --- a/did/views.py +++ b/did/views.py @@ -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( diff --git a/evidence/mixin_parse.py b/evidence/mixin_parse.py index 58351fb..8e99747 100644 --- a/evidence/mixin_parse.py +++ b/evidence/mixin_parse.py @@ -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 = ""