This commit is contained in:
Titivillus 2024-04-12 21:40:47 +00:00
parent 285e112232
commit eacc441de6
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ with jsonlines.open("annas_archive_es.jsonl") as reader:
dump = dump.decode() + "\n"
if not item["isbn13"]:
additem(dump, index, "unregistered")
elif item["isbn13"] not in isbn:
elif item["isbn13"] and item["isbn13"] not in isbn:
isbn.add(item["isbn13"])
additem(dump, index, "registered")
except Exception as err: