Skip to content

Commit fe0bc55

Browse files
committed
Added a link to the minutes api to json_agenda(). Changed the output json to use sorted keys.
- Legacy-Id: 12008
1 parent 9e66c16 commit fe0bc55

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ietf/meeting/views.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,6 +927,8 @@ def json_agenda(request, num=None ):
927927
room_names.add(asgn.room_name)
928928
if asgn.session.agenda():
929929
sessdict['agenda'] = '/api/v1/doc/document/%s'%asgn.session.agenda().name
930+
if asgn.session.minutes():
931+
sessdict['minutes'] = '/api/v1/doc/document/%s'%asgn.session.minutes().name
930932
if asgn.session.slides():
931933
sessdict['slides'] = []
932934
for slides in asgn.session.slides():
@@ -980,7 +982,7 @@ def json_agenda(request, num=None ):
980982

981983
data = {"%s"%num: meetinfo}
982984

983-
response = HttpResponse(json.dumps(data, indent=2), content_type='application/json;charset=%s'%settings.DEFAULT_CHARSET)
985+
response = HttpResponse(json.dumps(data, indent=2, sort_keys=True), content_type='application/json;charset=%s'%settings.DEFAULT_CHARSET)
984986
if last_modified:
985987
last_modified = tz.localize(last_modified).astimezone(pytz.utc)
986988
response['Last-Modified'] = format_date_time(timegm(last_modified.timetuple()))

0 commit comments

Comments
 (0)