Merge branch 'dpp' into join-to-manuals
This commit is contained in:
commit
79cb5279e9
|
@ -162,10 +162,12 @@ class DidView(View):
|
||||||
return before_dpp
|
return before_dpp
|
||||||
|
|
||||||
def get_result(self):
|
def get_result(self):
|
||||||
|
components = []
|
||||||
data = {
|
data = {
|
||||||
'document': {},
|
'document': {},
|
||||||
'dpp': self.id_dpp,
|
'dpp': self.id_dpp,
|
||||||
'algorithm': "sha3_256",
|
'algorithm': "sha3_256",
|
||||||
|
'components': components,
|
||||||
}
|
}
|
||||||
result = {'data': data}
|
result = {'data': data}
|
||||||
|
|
||||||
|
@ -178,6 +180,9 @@ class DidView(View):
|
||||||
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:
|
||||||
|
components.append({c.type: c.chid})
|
||||||
return result
|
return result
|
||||||
|
|
||||||
dpps = []
|
dpps = []
|
||||||
|
|
Reference in New Issue