From c00c6755d8f4072d41092e9c432f79caf5f8b03e Mon Sep 17 00:00:00 2001 From: j Date: Sat, 30 Jan 2016 11:44:02 +0530 Subject: [PATCH] typo --- oml/item/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oml/item/models.py b/oml/item/models.py index 012479d..fe4dc31 100644 --- a/oml/item/models.py +++ b/oml/item/models.py @@ -687,7 +687,7 @@ class File(db.Model): author = 'Unknown Author' if ' (Ed.)' in author: author = author.replace(' (Ed.)', '') + ' (Ed.)' - if author > 255: + if len(author) > 255: author = 'Various Authors' title = j.get('title', 'Untitled') extension = j['extension']