From 48cc4c85008bb3fa2751c042112467c7e60a96aa Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sat, 28 Mar 2020 23:14:25 -0700 Subject: web: small corrections to subtitle/original_name --- python/fatcat_web/entity_helpers.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python/fatcat_web/entity_helpers.py') diff --git a/python/fatcat_web/entity_helpers.py b/python/fatcat_web/entity_helpers.py index 7ac0f155..d82ea0e9 100644 --- a/python/fatcat_web/entity_helpers.py +++ b/python/fatcat_web/entity_helpers.py @@ -76,6 +76,8 @@ def enrich_release_entity(entity): if not entity.subtitle and entity.extra and entity.extra.get('subtitle'): if isinstance(entity.extra['subtitle'], str): entity.subtitle = entity.extra['subtitle'] + elif isinstance(entity.extra['subtitle'], list): + entity.subtitle = entity.extra['subtitle'][0] or None # author list to display; ensure it's sorted by index (any othors with # index=None go to end of list) authors = [c for c in entity.contribs if -- cgit v1.2.3