community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1728894 - /comdev/reporter.apache.org/trunk/site/getjson.py
Date Sat, 06 Feb 2016 23:39:15 GMT
Author: sebb
Date: Sat Feb  6 23:39:15 2016
New Revision: 1728894

URL: http://svn.apache.org/viewvc?rev=1728894&view=rev
Log:
Stable output

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

Modified: comdev/reporter.apache.org/trunk/site/getjson.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/getjson.py?rev=1728894&r1=1728893&r2=1728894&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/getjson.py (original)
+++ comdev/reporter.apache.org/trunk/site/getjson.py Sat Feb  6 23:39:15 2016
@@ -350,7 +350,7 @@ if re.match(r"^[-a-zA-Z0-9_.]+$", user):
     output = {
         'count': count,
         'pmcs': groups,
-        'all': allpmcs,
+        'all': sorted(allpmcs),
         'mail': mlstats,
         'delivery': emails,
         'jira': jdata,
@@ -365,7 +365,7 @@ if re.match(r"^[-a-zA-Z0-9_.]+$", user):
 
     # AFAICT dumps always uses \n for EOL
     # Use write rather than print so we don't get any trailing EOL added
-    dump = json.dumps(output, indent=1).replace('\n', '\r\n')
+    dump = json.dumps(output, indent=1, sort_keys=True).replace('\n', '\r\n')
     sys.stdout.write("Content-Type: application/json\r\nContent-Length: %u\r\n\r\n" % (len(dump)))
     sys.stdout.write(dump)
 else:



Mime
View raw message