bugfix integration with dpp/dlt #50

Merged
pedro merged 12 commits from fix_build into main 2025-02-14 13:36:40 +00:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 0903f53f8b - Show all commits

View file

@ -106,7 +106,7 @@ class PublicDeviceWebView(TemplateView):
'device': {},
}
dev = Build(self.object.last_evidence.doc, None, check=True)
doc = dev.get_doc()
doc = dev.build.get_doc()
data['document'] = json.dumps(doc)
data['device'] = doc.device
data['components'] = doc.components

View file

@ -12,7 +12,7 @@ from dpp.models import Proof
class ProofView(View):
def get(self, request, *args, **kwargs):
timestamp = kwargs.get("proof_id")
proof = Proof.objects.filter(timestamp=timestamp).first()
@ -22,9 +22,9 @@ class ProofView(View):
ev = Evidence(proof.uuid)
if not ev.doc:
return JsonResponse({}, status=404)
dev = Build(ev.doc, None, check=True)
doc = dev.get_phid()
doc = dev.build.get_doc()
data = {
"algorithm": ALGORITHM,