Skip to content
Snippets Groups Projects
Commit a53dcf8d authored by Moul's avatar Moul
Browse files

wot status: Remove loop to get the right identity (#470)

Since 41fd9269 (#470), wot.requirements result is about the pubkey
Unless a pubkey has been passed in uid field. I don’t think
the result should contain identities sharing a pubkey as pubkey and uid
parent c499b38f
No related branches found
No related tags found
No related merge requests found
...@@ -71,12 +71,7 @@ def status(uid_pubkey: str) -> None: ...@@ -71,12 +71,7 @@ def status(uid_pubkey: str) -> None:
certifications = OrderedDict() # type: OrderedDict certifications = OrderedDict() # type: OrderedDict
params = get_blockchain_parameters() params = get_blockchain_parameters()
req = None req = (client(wot.requirements, search=pubkey, pubkey=True))["identities"][0]
requirements = client(wot.requirements, search=pubkey, pubkey=True)
for req in requirements["identities"]:
if req["pubkey"] == pubkey:
break
certifications["received_expire"] = [] certifications["received_expire"] = []
certifications["received"] = [] certifications["received"] = []
certifications["sent"] = [] certifications["sent"] = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment