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: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2012-03-26 10:27:01 -05:00
parent fd1c992472
commit 8edc3c4b9d
2 changed files with 2 additions and 2 deletions

View File

@ -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')

View File

@ -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,