fix pytyhon 3.6 idiomatic syntax to make it more compatible
This commit is contained in:
parent
a5f0806437
commit
d1153e68f1
2 changed files with 3 additions and 3 deletions
|
@ -70,7 +70,7 @@ def main():
|
|||
if uniqueUserGlobal[id] == None:
|
||||
uniqueUserGlobal[id] = []
|
||||
labels[id] = begin.strftime("%x")
|
||||
print(f"\t{labels[id]}")
|
||||
print("\t{0}".format(labels[id]))
|
||||
|
||||
resultMess = list(filter(filter_message, messages))
|
||||
length = len(resultMess)
|
||||
|
|
|
@ -70,8 +70,8 @@ def main():
|
|||
if uniqueUserGlobal[id] == None:
|
||||
uniqueUserGlobal[id] = []
|
||||
labels[id] = begin.strftime("%b %Y")
|
||||
print(f"\t{labels[id]}")
|
||||
|
||||
print("\t{0}".format(labels[id]))
|
||||
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue