Skip to content
Snippets Groups Projects
Commit 034c58c4 authored by inso's avatar inso
Browse files

Fixed a bug due to last API changes

parent 17e4b163
Branches
Tags
No related merge requests found
...@@ -285,9 +285,10 @@ class Person(object): ...@@ -285,9 +285,10 @@ class Person(object):
# convert api data to certifiers list # convert api data to certifiers list
certifiers = list() certifiers = list()
# add certifiers of uid # add certifiers of uid
for certifier in data['results'][0]['uids'][0]['others']:
# for each uid found for this pubkey... for result in data['results']:
for uid in certifier['uids']: if result["pubkey"] == self.pubkey:
for certifier in [uid['others'] for uid in result['uids']]:
# add a certifier # add a certifier
certifier['uid'] = uid certifier['uid'] = uid
certifier['cert_time'] = dict() certifier['cert_time'] = dict()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment