This commit is contained in:
Titivillus 2024-04-12 21:40:47 +00:00
parent 285e112232
commit eacc441de6

View file

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