From 0a983c8fe017991f4e7fe29f4d2763a2f2b3fab6 Mon Sep 17 00:00:00 2001
From: Inso <insomniak.fr@gmail.com>
Date: Mon, 11 May 2015 16:15:59 +0200
Subject: [PATCH] Fix a bug in identity filter "direct connections"
---
src/cutecoin/gui/community_tab.py | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/cutecoin/gui/community_tab.py b/src/cutecoin/gui/community_tab.py
index 5ea171c9..9955e6b3 100644
--- a/src/cutecoin/gui/community_tab.py
+++ b/src/cutecoin/gui/community_tab.py
@@ -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:
--
GitLab