comparison sat_frontends/quick_frontend/quick_contact_list.py @ 2897:82d8243e6ad1

quick frontend (contact list): fixed profile filtering in fill()
author Goffi <goffi@goffi.org>
date Sun, 07 Apr 2019 20:59:34 +0200
parents 08b54bf77c54
children bad0b4280b77
comparison
equal deleted inserted replaced
2896:ca55e02a6fc8 2897:82d8243e6ad1
965 try: 965 try:
966 to_fill = self._to_fill 966 to_fill = self._to_fill
967 except AttributeError: 967 except AttributeError:
968 to_fill = self._to_fill = set() 968 to_fill = self._to_fill = set()
969 969
970 # if check if profiles have already been filled 970 # we check if profiles have already been filled
971 # to void filling them several times 971 # to void filling them several times
972 filled = to_fill.copy() 972 filled = to_fill.copy()
973 973
974 if profile is not None: 974 if profile is not None:
975 assert profile in self._clist 975 assert profile in self._clist
976 to_fill.add(profile) 976 to_fill.add(profile)
977 else: 977 else:
978 to_fill.update(self._clist.items()) 978 to_fill.update(self._clist.keys())
979 979
980 remaining = to_fill.difference(filled) 980 remaining = to_fill.difference(filled)
981 if remaining != to_fill: 981 if remaining != to_fill:
982 log.debug( 982 log.debug(
983 u"Not re-filling already filled contact list(s) for {}".format( 983 u"Not re-filling already filled contact list(s) for {}".format(