Handle alternate OL data format

Fixes #52
This commit is contained in:
Mouse Reeve 2020-02-19 19:03:50 -08:00
parent aacba3e7cf
commit cd9efe8cbf

View file

@ -30,5 +30,7 @@ def description_format(description):
@register.filter(name='author_bio')
def bio_format(bio):
''' clean up OL author bios '''
if isinstance(bio, dict) and 'value' in bio:
bio = bio['value']
bio = bio.split('\n')
return bio[0].strip()