From e2078c7bdeade1ef74a37da0a267887a66b663b2 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 27 Nov 2024 15:59:18 +0100 Subject: [PATCH] fix get_result --- did/views.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/did/views.py b/did/views.py index c885c1b..6dae1a3 100644 --- a/did/views.py +++ b/did/views.py @@ -98,19 +98,19 @@ class PublicDeviceWebView(TemplateView): 'data': data, } - if self.dpp: - data['document'] = self.dpp.snapshot.json_hw - last_dpp = self.get_last_dpp() - url_last = '' - if last_dpp: - url_last = 'https://{host}/{did}'.format( - did=last_dpp.key, host=app.config.get('HOST') - ) - data['url_last'] = url_last + # if self.dpp: + # data['document'] = self.dpp.snapshot.json_hw + # last_dpp = self.get_last_dpp() + # url_last = '' + # if last_dpp: + # url_last = 'https://{host}/{did}'.format( + # did=last_dpp.key, host=app.config.get('HOST') + # ) + # data['url_last'] = url_last - for c in self.dpp.snapshot.components: - components.append({c.type: c.chid}) - return result + # for c in self.dpp.snapshot.components: + # components.append({c.type: c.chid}) + # return result dpps = [] for d in self.device.dpps: