diff --git a/silkaj/wot.py b/silkaj/wot.py index 5053e102200ab98a76df43363674b8560b8c8046..2268e1459d195b2867e6de5637ed914e253b78ac 100644 --- a/silkaj/wot.py +++ b/silkaj/wot.py @@ -67,8 +67,10 @@ def received_sent_certifications(uid_pubkey): identity, pubkey, signed = choose_identity(uid_pubkey) certifications = OrderedDict() params = BlockchainParams().params - req = client(wot.requirements, pubkey) - req = req["identities"][0] + requirements = client(wot.requirements, pubkey) + for req in requirements["identities"]: + if req["pubkey"] == pubkey: + break certifications["received_expire"] = list() certifications["received"] = list() for cert in identity["others"]: