community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1663928 - /comdev/reporter.apache.org/site/getjson.py
Date Wed, 04 Mar 2015 10:49:21 GMT
Author: humbedooh
Date: Wed Mar  4 10:49:20 2015
New Revision: 1663928

URL: http://svn.apache.org/r1663928
Log:
fix jira keys, add mapping for corinthia

Modified:
    comdev/reporter.apache.org/site/getjson.py

Modified: comdev/reporter.apache.org/site/getjson.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/site/getjson.py?rev=1663928&r1=1663927&r2=1663928&view=diff
==============================================================================
--- comdev/reporter.apache.org/site/getjson.py (original)
+++ comdev/reporter.apache.org/site/getjson.py Wed Mar  4 10:49:20 2015
@@ -4,7 +4,8 @@ import base64, urllib2
 
 jmap = {
     'trafficserver': ['TS'],
-    'cordova': ['CB']
+    'cordova': ['CB'],
+    'corinthia': ['COR']
 }
 
 pmap = {
@@ -206,8 +207,10 @@ if m:
     jdata = {}
     ddata = {}
     rdata = {}
-    jiras = []
+    
+    keys = {}
     for group in groups:
+        jiras = []
         jdata[group] = [0,0, None]
         ddata[group] = getProjectData(group)
         rdata[group] = getReleaseData(group)
@@ -220,6 +223,7 @@ if m:
                 jdata[group][2] = p
         elif group in ddata and 'name' in ddata[group]:
             jiras = getJIRAProjects(ddata[group]['name'])
+            keys[group] = jiras
             for jiraname in jiras:
                 x,y, p= getJIRAS(jiraname)
                 jdata[group][0] += x
@@ -250,7 +254,7 @@ if m:
         'changes': cdata,
         'pdata': ddata,
         'releases': rdata,
-        'keys': jiras
+        'keys': keys
     }
     dump = json.dumps(output)
     print ("Content-Type: application/json\r\nContent-Length: %u\r\n\r\n" % (len(dump)+1))



Mime
View raw message