No need to re-jsonify the child albums.

This commit is contained in:
voussoir 2018-09-23 13:25:24 -07:00
parent e9f567ffc9
commit 37dc5aa2c4

View file

@ -33,9 +33,6 @@ def get_album_html(album_id):
def get_album_json(album_id):
album = common.P_album(album_id)
album = etiquette.jsonify.album(album)
album['sub_albums'] = [common.P_album(x) for x in album['sub_albums']]
album['sub_albums'].sort(key=lambda x: (x.title or x.id).lower())
album['sub_albums'] = [etiquette.jsonify.album(x, minimal=True) for x in album['sub_albums']]
return jsonify.make_json_response(album)
@site.route('/album/<album_id>.zip')