Fix
This commit is contained in:
parent
285e112232
commit
eacc441de6
|
@ -85,7 +85,7 @@ with jsonlines.open("annas_archive_es.jsonl") as reader:
|
||||||
dump = dump.decode() + "\n"
|
dump = dump.decode() + "\n"
|
||||||
if not item["isbn13"]:
|
if not item["isbn13"]:
|
||||||
additem(dump, index, "unregistered")
|
additem(dump, index, "unregistered")
|
||||||
elif item["isbn13"] not in isbn:
|
elif item["isbn13"] and item["isbn13"] not in isbn:
|
||||||
isbn.add(item["isbn13"])
|
isbn.add(item["isbn13"])
|
||||||
additem(dump, index, "registered")
|
additem(dump, index, "registered")
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
|
|
Loading…
Reference in a new issue