From 72c3df0ee9fe63ef0cb9b29c974cc34ef2c26c14 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 12 Jan 2016 11:08:40 +0530 Subject: [PATCH] typo --- oml/user/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oml/user/models.py b/oml/user/models.py index ddc3b14..c58e96c 100644 --- a/oml/user/models.py +++ b/oml/user/models.py @@ -373,8 +373,8 @@ class Metadata(db.Model): if 'isbn' in data and isinstance(data['isbn'], list): isbns = [utils.to_isbn13(isbn) for isbn in data['isbn']] isbns = [isbn for isbn in isbns if isbn] - if isbn: - data['isbn'] = isbn + if isbns: + data['isbn'] = isbns[0] else: del data['isbn'] for key in data: