This commit is contained in:
j 2016-01-12 11:08:40 +05:30
parent 3dd1af5bd5
commit 72c3df0ee9

View file

@ -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: