diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-06-17 15:39:46 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-06-17 15:39:46 -0700 |
commit | a4f9a344bb7d80fdb830b764d26eec986a47e4c1 (patch) | |
tree | b7a6c24e57459dfb660d871d0195c6468d307ce8 /python/fatcat/routes.py | |
parent | 2fed334b353a070b7c7d1ec1b38fd826fa866455 (diff) | |
download | fatcat-a4f9a344bb7d80fdb830b764d26eec986a47e4c1.tar.gz fatcat-a4f9a344bb7d80fdb830b764d26eec986a47e4c1.zip |
fix broken basic/boring templates
Diffstat (limited to 'python/fatcat/routes.py')
-rw-r--r-- | python/fatcat/routes.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/fatcat/routes.py b/python/fatcat/routes.py index a3d4d4ee..ad5c868c 100644 --- a/python/fatcat/routes.py +++ b/python/fatcat/routes.py @@ -68,7 +68,9 @@ def release_view(ident): entity = api.get_release(str(ident)) except ApiException as ae: abort(ae.status) - return render_template('release_view.html', release=entity) + authors = [c for c in entity.contribs if c.role in ('author', None)] + authors = sorted(authors, key=lambda c: c.index) + return render_template('release_view.html', release=entity, authors=authors) @app.route('/release/random', methods=['GET']) def release_random(): |