Skip to content
Snippets Groups Projects
Commit 0a983c8f authored by inso's avatar inso
Browse files

Fix a bug in identity filter "direct connections"

parent 00f2eee9
No related branches found
No related tags found
No related merge requests found
......@@ -287,17 +287,18 @@ Publishing your UID cannot be canceled.""")
if persons is None:
self_identity = Person.lookup(self.account.pubkey, self.community)
account_connections = []
persons = []
certifiers_of = []
certified_by = []
for p in self_identity.unique_valid_certifiers_of(self.community):
account_connections.append(Person.lookup(p['pubkey'], self.community))
persons = [p for p in account_connections
if p.pubkey not in [i.pubkey for i in persons]]
certifiers_of = [p for p in account_connections]
logging.debug(persons)
for p in self_identity.unique_valid_certified_by(self.community):
account_connections.append(Person.lookup(p['pubkey'], self.community))
persons = persons + [p for p in account_connections
if p.pubkey not in [i.pubkey for i in persons]]
certified_by = [p for p in account_connections
if p.pubkey not in [i.pubkey for i in certifiers_of]]
self.table_identities.model().sourceModel().refresh_identities(persons)
self.table_identities.model().sourceModel().refresh_identities(certifiers_of + certified_by)
def refresh_quality_buttons(self):
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment