Commit 0226456b authored by Barry Warsaw's avatar Barry Warsaw

Sort the JSON output when [devmode]enabled is true.

parent 1ef59d99
Pipeline #272062 passed with stage
......@@ -96,6 +96,8 @@ REST
* Fix pagination values `start` and `total_size` in the REST API. Given by
Aurélien Bompard. (Closes: #154)
* JSON representations for held message now include a ``self_link``.
* When ``[devmode]enabled`` is set, the JSON output is sorted. Given by
Aurélien Bompard.
Other
-----
......
......@@ -113,7 +113,7 @@ def etag(resource):
etag = hashlib.sha1(hashfood).hexdigest()
resource['http_etag'] = '"{0}"'.format(etag)
return json.dumps(resource, cls=ExtendedEncoder,
sort_keys=as_boolean(config.devmode.enabled))
sort_keys=as_boolean(config.devmode.enabled))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment