Fix error when we have got message
This commit is contained in:
parent
aa0b0b4353
commit
91705a3d86
4 changed files with 8 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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
Loading…
Reference in a new issue