aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2014-10-24 17:26:43 -0700
committerRyan Huber <rhuber@gmail.com>2014-10-24 17:26:43 -0700
commit28e74a80686e455580299bf53998888483b41e9d (patch)
tree62db35a2fca3816882db9043231200d9535efa35 /wee_slack.py
parent22b2bfa2be5e9c98585071558fff521959d95c5e (diff)
downloadwee-slack-28e74a80686e455580299bf53998888483b41e9d.tar.gz
fix typing
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 31e32f9..e38e651 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -59,6 +59,10 @@ class Meta(list):
return string
def __repr__(self):
self.search_list.get_all(self.attribute)
+ def get_all(self):
+ items = []
+ items += self.search_list.get_all(self.attribute)
+ return items
def find(self, name):
items = self.search_list.find_deep(name, self.attribute)
items = [x for x in items if x != None]
@@ -660,7 +664,7 @@ def process_message(message_json):
### END Websocket handling methods
def typing_bar_item_cb(data, buffer, args):
- typers = [x for x in channels if x.is_someone_typing() == True]
+ typers = [x for x in channels.get_all() if x.is_someone_typing() == True]
if len(typers) > 0:
direct_typers = []
channel_typers = []