You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kibble.apache.org by hu...@apache.org on 2018/09/17 08:05:38 UTC
[kibble] branch master updated: fix contrib counting bug;
thanks to Sharan for spotting it!
This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kibble.git
The following commit(s) were added to refs/heads/master by this push:
new df48268 fix contrib counting bug; thanks to Sharan for spotting it!
df48268 is described below
commit df48268929a0e5672f4a141ed8996692a1ffa19c
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Mon Sep 17 10:05:28 2018 +0200
fix contrib counting bug; thanks to Sharan for spotting it!
---
api/pages/org/contributors.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/api/pages/org/contributors.py b/api/pages/org/contributors.py
index c42e0f9..301e533 100644
--- a/api/pages/org/contributors.py
+++ b/api/pages/org/contributors.py
@@ -137,7 +137,7 @@ def run(API, environ, indata, session):
for k in res['aggregations']['by_id']['buckets']:
if k['key'] not in emails:
emails.append(k['key'])
- contribs[k['key']] = k['doc_count']
+ contribs[k['key']] = contribs.get(k['key'], 0) + k['doc_count']
N += 1
people = []