fix json call to chid
This commit is contained in:
parent
f7f6da5892
commit
9b7bbd6bcf
|
@ -95,7 +95,6 @@ class PublicDeviceWebView(TemplateView):
|
|||
'components': components,
|
||||
'manufacturer DPP': '',
|
||||
'device': {},
|
||||
'components': [],
|
||||
}
|
||||
result = {
|
||||
'@context': ['https://ereuse.org/dpp0.json'],
|
||||
|
@ -132,8 +131,10 @@ class PublicDeviceWebView(TemplateView):
|
|||
dev = Build(d.doc, None, check=True)
|
||||
doc = dev.get_phid()
|
||||
ev = json.dumps(doc)
|
||||
phid = dev.get_signature(ev)
|
||||
dpp = "{}:{}".format(self.pk, phid)
|
||||
rr = {
|
||||
'dpp': d.key,
|
||||
'dpp': dpp,
|
||||
'document': ev,
|
||||
'algorithm': ALGORITHM,
|
||||
'manufacturer DPP': '',
|
||||
|
|
Loading…
Reference in New Issue