Fix error when we have got message

This commit is contained in:
Mickael 2019-12-31 16:06:01 +01:00
parent aa0b0b4353
commit 91705a3d86
4 changed files with 8 additions and 2 deletions

View file

@ -60,6 +60,9 @@ def main():
labels[id] = begin.strftime("%x")
print("\t{0}".format(labels[id]))
if messages is None:
continue
resultMess = list(filter(filter_message, messages))
length = len(resultMess)
dataMess.append(length)

View file

@ -60,6 +60,9 @@ def main():
labels[id] = begin.strftime("%b %Y")
print("\t{0}".format(labels[id]))
if messages is None:
continue
resultMess = list(filter(lambda mess: begin < datetime.strptime(mess["ts"], "%Y-%m-%dT%H:%M:%S.%fZ") < end, messages))
length = len(resultMess)
dataMess.append(length)

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long