typo
This commit is contained in:
parent
3dd1af5bd5
commit
72c3df0ee9
1 changed files with 2 additions and 2 deletions
|
@ -373,8 +373,8 @@ class Metadata(db.Model):
|
||||||
if 'isbn' in data and isinstance(data['isbn'], list):
|
if 'isbn' in data and isinstance(data['isbn'], list):
|
||||||
isbns = [utils.to_isbn13(isbn) for isbn in data['isbn']]
|
isbns = [utils.to_isbn13(isbn) for isbn in data['isbn']]
|
||||||
isbns = [isbn for isbn in isbns if isbn]
|
isbns = [isbn for isbn in isbns if isbn]
|
||||||
if isbn:
|
if isbns:
|
||||||
data['isbn'] = isbn
|
data['isbn'] = isbns[0]
|
||||||
else:
|
else:
|
||||||
del data['isbn']
|
del data['isbn']
|
||||||
for key in data:
|
for key in data:
|
||||||
|
|
Loading…
Reference in a new issue