From bb3ccf28158c07fc8ef9c448df9aee769590d572 Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Wed, 6 Dec 2017 16:51:29 +0100 Subject: [PATCH] fix: contribution is correctly taken for the entire time span instead of just one day if no org is specified --- helpers/users_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/users_helper.py b/helpers/users_helper.py index 551a351..459708b 100644 --- a/helpers/users_helper.py +++ b/helpers/users_helper.py @@ -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)