From 5d92e0b397a19f503121e9fb58f1e4ed0d4e3e49 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 29 Jan 2016 22:05:59 +0530 Subject: [PATCH] various authors --- oml/item/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oml/item/models.py b/oml/item/models.py index 95245d6..012479d 100644 --- a/oml/item/models.py +++ b/oml/item/models.py @@ -687,6 +687,8 @@ class File(db.Model): author = 'Unknown Author' if ' (Ed.)' in author: author = author.replace(' (Ed.)', '') + ' (Ed.)' + if author > 255: + author = 'Various Authors' title = j.get('title', 'Untitled') extension = j['extension']