Make zerver/lib/statistics.py pass mypy check.

This commit is contained in:
Eklavya Sharma 2016-05-17 16:30:30 +05:30
parent 0dcd8b387d
commit 98afe000ee
2 changed files with 1 additions and 2 deletions

View File

@ -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/

View File

@ -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