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.""") ...@@ -287,17 +287,18 @@ Publishing your UID cannot be canceled.""")
if persons is None: if persons is None:
self_identity = Person.lookup(self.account.pubkey, self.community) self_identity = Person.lookup(self.account.pubkey, self.community)
account_connections = [] account_connections = []
persons = [] certifiers_of = []
certified_by = []
for p in self_identity.unique_valid_certifiers_of(self.community): for p in self_identity.unique_valid_certifiers_of(self.community):
account_connections.append(Person.lookup(p['pubkey'], self.community)) account_connections.append(Person.lookup(p['pubkey'], self.community))
persons = [p for p in account_connections certifiers_of = [p for p in account_connections]
if p.pubkey not in [i.pubkey for i in persons]] logging.debug(persons)
for p in self_identity.unique_valid_certified_by(self.community): for p in self_identity.unique_valid_certified_by(self.community):
account_connections.append(Person.lookup(p['pubkey'], self.community)) account_connections.append(Person.lookup(p['pubkey'], self.community))
persons = persons + [p for p in account_connections certified_by = [p for p in account_connections
if p.pubkey not in [i.pubkey for i in persons]] 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): def refresh_quality_buttons(self):
try: try:
......
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