community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1864082 - /comdev/reporter.apache.org/trunk/site/getjson.py
Date Wed, 31 Jul 2019 16:01:00 GMT
Author: humbedooh
Date: Wed Jul 31 16:00:59 2019
New Revision: 1864082

URL: http://svn.apache.org/viewvc?rev=1864082&view=rev
Log:
forgot to dump!

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=1864082&r1=1864081&r2=1864082&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/getjson.py (original)
+++ comdev/reporter.apache.org/trunk/site/getjson.py Wed Jul 31 16:00:59 2019
@@ -248,6 +248,7 @@ if re.match(r"^[-a-zA-Z0-9_.]+$", user):
     if (os.path.exists(wanted_file) and os.path.getmtime(wanted_file) > (time.time() -
7200)):
         dump = json.load(open(wanted_file, "r"))
         dump['you'] = committers[user]
+        dump = json.dumps(dump)
         sys.stdout.write("Content-Type: application/json\r\nContent-Length: %u\r\n\r\n" %
(len(dump)))
         sys.stdout.write(dump)
         sys.exit(0)



Mime
View raw message