diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-03-04 16:27:43 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-03-04 16:27:43 -0800 |
commit | 0afdc9c8aace30465b533cf98e07d259f7991f66 (patch) | |
tree | 64999787a410b225dfb651d99fa33609b66c022f /python/fatcat_web | |
parent | 0795329a5c1eee1ea9e48220921624a81026eebf (diff) | |
download | fatcat-0afdc9c8aace30465b533cf98e07d259f7991f66.tar.gz fatcat-0afdc9c8aace30465b533cf98e07d259f7991f66.zip |
fix release/author breakage when index isn't set
Diffstat (limited to 'python/fatcat_web')
-rw-r--r-- | python/fatcat_web/routes.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |