From 0afdc9c8aace30465b533cf98e07d259f7991f66 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 4 Mar 2019 16:27:43 -0800 Subject: fix release/author breakage when index isn't set --- python/fatcat_web/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/fatcat_web/routes.py b/python/fatcat_web/routes.py index 2a8e8fa3..7a254f52 100644 --- a/python/fatcat_web/routes.py +++ b/python/fatcat_web/routes.py @@ -379,7 +379,7 @@ def release_view(ident): fs.total_size = sum([f.size for f in fs.manifest]) entity.filesets = filesets authors = [c for c in entity.contribs if c.role in ('author', None)] - authors = sorted(authors, key=lambda c: c.index) + authors = sorted(authors, key=lambda c: c.index or 99999999) return render_template('release_view.html', release=entity, authors=authors, container=container) -- cgit v1.2.3