community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From he...@apache.org
Subject svn commit: r1821913 - /comdev/reporter.apache.org/trunk/site/getjson-hppdev.py
Date Mon, 22 Jan 2018 18:22:00 GMT
Author: henkp
Date: Mon Jan 22 18:21:59 2018
New Revision: 1821913

URL: http://svn.apache.org/viewvc?rev=1821913&view=rev
Log:
use group instead of oproject

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=1821913&r1=1821912&r2=1821913&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/getjson-hppdev.py (original)
+++ comdev/reporter.apache.org/trunk/site/getjson-hppdev.py Mon Jan 22 18:21:59 2018
@@ -273,6 +273,8 @@ if re.match(r"^[-a-zA-Z0-9_.]+$", user):
     keys = {}
     count = {}
     health = {}
+    checker_json = readJson(RAOHOME+"data/cache/checker.json", None)
+    checker = None ;
     for group in groups:
         jiras = []
         count[group] = [0,0]
@@ -332,18 +334,16 @@ if re.match(r"^[-a-zA-Z0-9_.]+$", user):
                         cdata[group]['committer'][member] = cchanges[pmc][member]
         if group in pmcdates: # Make sure we have this PMC in the JSON, so as to not bork
             dates[group] = pmcdates[group] # only send the groups we want
+        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]['meta'] = meta
     if not isMember:
         allpmcs = []
-    checker_json  = readJson(RAOHOME+"data/cache/checker.json", None)
-    checker = None ;
-    if oproject and checker_json and 'meta' in checker_json and 'projects' in checker_json:
-        meta = checker_json['meta']
-        prjs = checker_json['projects']
-        if oproject in prjs:
-           checker = { oproject: prjs[oproject] }
-        else:
-           checker = { oproject: { 'errors': 0 } }
-        checker[oproject]['meta'] = meta
     output = {
         'count': count,
         'pmcs': groups,



Mime
View raw message