community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1673027 - /comdev/projects.apache.org/site/edit/save.py
Date Sun, 12 Apr 2015 16:31:28 GMT
Author: hboutemy
Date: Sun Apr 12 16:31:28 2015
New Revision: 1673027

URL: http://svn.apache.org/r1673027
Log:
sort project keys

Modified:
    comdev/projects.apache.org/site/edit/save.py

Modified: comdev/projects.apache.org/site/edit/save.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/site/edit/save.py?rev=1673027&r1=1673026&r2=1673027&view=diff
==============================================================================
--- comdev/projects.apache.org/site/edit/save.py (original)
+++ comdev/projects.apache.org/site/edit/save.py Sun Apr 12 16:31:28 2015
@@ -24,7 +24,7 @@ try:
         for k in form:
             js[k] = form[k].value
         with open("../json/projects/%s" % f, "w") as out:
-            out.write(json.dumps(js, indent=0))
+            out.write(json.dumps(js, sort_keys=True, indent=0))
             out.close()
 
         with open("../json/foundation/projects.json", "r") as g:



Mime
View raw message