aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/importers
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2022-07-21 14:26:50 -0700
committerBryan Newbold <bnewbold@robocracy.org>2022-07-21 14:26:50 -0700
commitb3eddfc398129f2fdcf4737849d436327a67a74a (patch)
treea4f668a2da3c62fd09c389a2cda67d05e91cea4f /python/fatcat_tools/importers
parent6bc3e4bbcdf9db420aab5a712a716c6c6a5bd6d7 (diff)
downloadfatcat-b3eddfc398129f2fdcf4737849d436327a67a74a.tar.gz
fatcat-b3eddfc398129f2fdcf4737849d436327a67a74a.zip
chocula importer: do update if publisher_type was null
Diffstat (limited to 'python/fatcat_tools/importers')
-rw-r--r--python/fatcat_tools/importers/chocula.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/fatcat_tools/importers/chocula.py b/python/fatcat_tools/importers/chocula.py
index 8c410d3e..38802bcb 100644
--- a/python/fatcat_tools/importers/chocula.py
+++ b/python/fatcat_tools/importers/chocula.py
@@ -136,6 +136,9 @@ class ChoculaImporter(EntityImporter):
do_update = True
if ce.extra.get("webarchive_urls") and not ce.extra.get("webarchive_urls", []):
do_update = True
+ if ce.extra.get("publisher_type") and not ce.extra.get("publisher_type"):
+ # many older containers were missing this metadata
+ do_update = True
for k in ("kbart", "ia", "doaj"):
# always update these fields if not equal (chocula override)
if ce.extra.get(k) and ce.extra[k] != existing.extra.get(k):