Commit 8edc3c4b authored by Dan McGee's avatar Dan McGee
Browse files

Bump signoffs and mirror status JSON API versions



Due to datetime formatting changes in Django 1.4, we know follow the
ECMA specification more closely and use 'yyyy-mm-ddThh:mm_ssZ' format.
As this could break existing users of the JSON data, bump the version.

Signed-off-by: default avatarDan McGee <dan@archlinux.org>
parent fd1c9924
......@@ -169,7 +169,7 @@ def default(self, obj):
def status_json(request):
status_info = get_mirror_statuses()
data = status_info.copy()
data['version'] = 1
data['version'] = 2
to_json = simplejson.dumps(data, ensure_ascii=False,
cls=MirrorStatusJSONEncoder)
response = HttpResponse(to_json, mimetype='application/json')
......
......@@ -180,7 +180,7 @@ def default(self, obj):
def signoffs_json(request):
signoff_groups = sorted(get_signoff_groups(), key=attrgetter('pkgbase'))
data = {
'version': 1,
'version': 2,
'signoff_groups': signoff_groups,
}
to_json = simplejson.dumps(data, ensure_ascii=False,
......
Supports Markdown
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