Check if "lm" exist in channel
This commit is contained in:
parent
2d48938e40
commit
6678089038
1 changed files with 4 additions and 0 deletions
|
@ -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-"):
|
||||
|
|
Loading…
Reference in a new issue