community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From he...@apache.org
Subject svn commit: r1821904 - /comdev/reporter.apache.org/trunk/site/getjson-hppdev.py
Date Mon, 22 Jan 2018 17:19:20 GMT
Author: henkp
Date: Mon Jan 22 17:19:19 2018
New Revision: 1821904

URL: http://svn.apache.org/viewvc?rev=1821904&view=rev
Log:
fix structure checker json

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=1821904&r1=1821903&r2=1821904&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/getjson-hppdev.py (original)
+++ comdev/reporter.apache.org/trunk/site/getjson-hppdev.py Mon Jan 22 17:19:19 2018
@@ -340,9 +340,10 @@ if re.match(r"^[-a-zA-Z0-9_.]+$", user):
         meta = checker_json['meta']
         prjs = checker_json['projects']
         if oproject in prjs:
-           checker = { 'meta': meta, oproject: prjs[oproject] }
+           checker = { oproject: prjs[oproject] }
         else:
-           checker = { 'meta': meta, oproject: {'errors': 0 } }
+           checker = { oproject: { 'errors': 0 } }
+        checker[oproject]['meta'] = meta
     output = {
         'count': count,
         'pmcs': groups,



Mime
View raw message