Move query/unpickling out of loop for mutelist.
This commit is contained in:
parent
925529837e
commit
fb481c98fb
1 changed files with 2 additions and 1 deletions
|
|
@ -91,7 +91,8 @@ class DefaultChannel(with_metaclass(TypeclassBase, ChannelDB)):
|
||||||
@property
|
@property
|
||||||
def wholist(self):
|
def wholist(self):
|
||||||
subs = self.subscriptions.all()
|
subs = self.subscriptions.all()
|
||||||
listening = [ob for ob in subs if ob.is_connected and ob not in self.mutelist]
|
muted = list(self.mutelist)
|
||||||
|
listening = [ob for ob in subs if ob.is_connected and ob not in muted]
|
||||||
if subs:
|
if subs:
|
||||||
# display listening subscribers in bold
|
# display listening subscribers in bold
|
||||||
string = ", ".join([account.key if account not in listening else "|w%s|n" % account.key for account in subs])
|
string = ", ".join([account.key if account not in listening else "|w%s|n" % account.key for account in subs])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue