From 941cbba66d398b3758466696e2a471a355b6329f Mon Sep 17 00:00:00 2001 From: Mickael Date: Mon, 26 Aug 2019 18:50:02 +0200 Subject: [PATCH] filter generate & accueil channels --- scripts/generate_chat_info.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/generate_chat_info.py b/scripts/generate_chat_info.py index 653c7f0..e63952e 100644 --- a/scripts/generate_chat_info.py +++ b/scripts/generate_chat_info.py @@ -44,7 +44,8 @@ def main(): if messages["success"]: nbMessages = len(messages["messages"]) 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"])) else: print("Error : {}".format(messages["error"]))