You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by he...@apache.org on 2018/01/23 08:57:11 UTC

svn commit: r1821968 - /comdev/reporter.apache.org/trunk/site/getjson-hppdev.py

Author: henkp
Date: Tue Jan 23 08:57:11 2018
New Revision: 1821968

URL: http://svn.apache.org/viewvc?rev=1821968&view=rev
Log:
show checker errors, if any (17)

Modified:
    comdev/reporter.apache.org/trunk/site/getjson-hppdev.py

Modified: comdev/reporter.apache.org/trunk/site/getjson-hppdev.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/getjson-hppdev.py?rev=1821968&r1=1821967&r2=1821968&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/getjson-hppdev.py (original)
+++ comdev/reporter.apache.org/trunk/site/getjson-hppdev.py Tue Jan 23 08:57:11 2018
@@ -274,7 +274,7 @@ if re.match(r"^[-a-zA-Z0-9_.]+$", user):
     count = {}
     health = {}
     checker_json = readJson(RAOHOME+"data/cache/checker.json", None)
-    checker = None ;
+    checker = {} ;
     for group in groups:
         jiras = []
         count[group] = [0,0]
@@ -337,10 +337,7 @@ if re.match(r"^[-a-zA-Z0-9_.]+$", user):
         if checker_json and 'meta' in checker_json and 'projects' in checker_json:
             meta = checker_json['meta']
             prjs = checker_json['projects']
-            if group in prjs:
-               checker = { group: prjs[group] }
-            else:
-               checker = { group: { 'errors': 0 } }
+            checker[group] = prjs[group] if group in prjs else { 'errors': 0 }
             checker[group]['meta'] = meta
     if not isMember:
         allpmcs = []