Check if "lm" exist in channel

This commit is contained in:
Mickael 2019-08-28 18:14:03 +02:00
parent 2d48938e40
commit 6678089038

View file

@ -30,7 +30,11 @@ def main():
users = []
for channel in channels:
if "lm" not in channel:
continue
messages_total += int(channel["msgs"])
date = channel["lm"]
channel_date = datetime.strptime(date, "%Y-%m-%dT%H:%M:%S.%fZ")
if channel["name"].startswith("cohorte-"):