filter generate & accueil channels
This commit is contained in:
parent
4522a2693b
commit
941cbba66d
1 changed files with 2 additions and 1 deletions
|
@ -44,7 +44,8 @@ def main():
|
||||||
if messages["success"]:
|
if messages["success"]:
|
||||||
nbMessages = len(messages["messages"])
|
nbMessages = len(messages["messages"])
|
||||||
messages_recent += nbMessages
|
messages_recent += nbMessages
|
||||||
channels_list.append((channel["name"], nbMessages))
|
if (channel["name"] != "general") and (channel["name"] != "accueil"):
|
||||||
|
channels_list.append((channel["name"], nbMessages))
|
||||||
users.extend(map(lambda message: message["u"]["_id"], messages["messages"]))
|
users.extend(map(lambda message: message["u"]["_id"], messages["messages"]))
|
||||||
else:
|
else:
|
||||||
print("Error : {}".format(messages["error"]))
|
print("Error : {}".format(messages["error"]))
|
||||||
|
|
Loading…
Reference in a new issue