mirror of https://github.com/zulip/zulip.git
Make zerver/lib/statistics.py pass mypy check.
This commit is contained in:
parent
0dcd8b387d
commit
98afe000ee
|
@ -17,7 +17,6 @@ bots/zephyr_mirror_backend.py
|
|||
docs/conf.py
|
||||
tools/deprecated/
|
||||
zproject/
|
||||
zerver/lib/statistics.py
|
||||
zerver/middleware.py
|
||||
zerver/migrations/
|
||||
zerver/tests/
|
||||
|
|
|
@ -130,7 +130,7 @@ def activity_averages_between(begin, end, by_day=True):
|
|||
seconds_active[day] = seconds_active_during_day(day)
|
||||
|
||||
if by_day:
|
||||
return dict((day, calculate_stats(values, all_users=users_to_measure))
|
||||
return dict((str(day), calculate_stats(values, all_users=users_to_measure))
|
||||
for day, values in six.iteritems(seconds_active))
|
||||
else:
|
||||
return calculate_stats(list(chain.from_iterable(seconds_active.values())), # type: ignore # chain.from_iterable needs overload
|
||||
|
|
Loading…
Reference in New Issue