fix get_result
This commit is contained in:
parent
dde4a114a0
commit
0c5adf87c6
24
did/views.py
24
did/views.py
|
@ -98,19 +98,19 @@ class PublicDeviceWebView(TemplateView):
|
||||||
'data': data,
|
'data': data,
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.dpp:
|
# if self.dpp:
|
||||||
data['document'] = self.dpp.snapshot.json_hw
|
# data['document'] = self.dpp.snapshot.json_hw
|
||||||
last_dpp = self.get_last_dpp()
|
# last_dpp = self.get_last_dpp()
|
||||||
url_last = ''
|
# url_last = ''
|
||||||
if last_dpp:
|
# if last_dpp:
|
||||||
url_last = 'https://{host}/{did}'.format(
|
# url_last = 'https://{host}/{did}'.format(
|
||||||
did=last_dpp.key, host=app.config.get('HOST')
|
# did=last_dpp.key, host=app.config.get('HOST')
|
||||||
)
|
# )
|
||||||
data['url_last'] = url_last
|
# data['url_last'] = url_last
|
||||||
|
|
||||||
for c in self.dpp.snapshot.components:
|
# for c in self.dpp.snapshot.components:
|
||||||
components.append({c.type: c.chid})
|
# components.append({c.type: c.chid})
|
||||||
return result
|
# return result
|
||||||
|
|
||||||
dpps = []
|
dpps = []
|
||||||
for d in self.device.dpps:
|
for d in self.device.dpps:
|
||||||
|
|
Loading…
Reference in a new issue