fix on users stat
This commit is contained in:
parent
2473e8af21
commit
3d04b08aa4
2 changed files with 3 additions and 2 deletions
File diff suppressed because one or more lines are too long
|
@ -38,7 +38,7 @@ while True:
|
||||||
pprint( channel['name'] )
|
pprint( channel['name'] )
|
||||||
begin = date - monthdelta(12)
|
begin = date - monthdelta(12)
|
||||||
end = begin + monthdelta(1)
|
end = begin + monthdelta(1)
|
||||||
users = []
|
|
||||||
for id in range(0, 12):
|
for id in range(0, 12):
|
||||||
labels[id] = begin.strftime("%b %Y")
|
labels[id] = begin.strftime("%b %Y")
|
||||||
begindate = begin.isoformat()
|
begindate = begin.isoformat()
|
||||||
|
@ -48,6 +48,7 @@ while True:
|
||||||
dataMess.append(lenght)
|
dataMess.append(lenght)
|
||||||
|
|
||||||
if lenght > 0:
|
if lenght > 0:
|
||||||
|
users = []
|
||||||
for mess in resultMess['messages']:
|
for mess in resultMess['messages']:
|
||||||
users.append(mess['u']['_id'])
|
users.append(mess['u']['_id'])
|
||||||
usersDistinct = set(users)
|
usersDistinct = set(users)
|
||||||
|
|
Loading…
Reference in a new issue