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 = []
|
users = []
|
||||||
for channel in channels:
|
for channel in channels:
|
||||||
|
if "lm" not in channel:
|
||||||
|
continue
|
||||||
|
|
||||||
messages_total += int(channel["msgs"])
|
messages_total += int(channel["msgs"])
|
||||||
|
|
||||||
date = channel["lm"]
|
date = channel["lm"]
|
||||||
channel_date = datetime.strptime(date, "%Y-%m-%dT%H:%M:%S.%fZ")
|
channel_date = datetime.strptime(date, "%Y-%m-%dT%H:%M:%S.%fZ")
|
||||||
if channel["name"].startswith("cohorte-"):
|
if channel["name"].startswith("cohorte-"):
|
||||||
|
|
Loading…
Reference in a new issue