fix: contribution is correctly taken for the entire time span instead of just one day if no org is specified

pull/24/head
Sami Mokaddem 2017-12-06 16:51:29 +01:00
parent a52bf6ced5
commit bb3ccf2815
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ class Users_helper:
if org is None:
orgs_contri = self.serv_redis_db.zrange(keyname, 0, -1, desc=True, withscores=True)
orgs_contri_num = 0
for org, count in orgs_contri:
for _, count in orgs_contri:
orgs_contri_num += count
else:
orgs_contri_num = self.serv_redis_db.zscore(keyname, org)