This commit is contained in:
zandercymatics 2025-01-09 14:46:37 -07:00
parent bff98996e8
commit 2fa8366206
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
3 changed files with 91 additions and 97 deletions

View file

@ -60,7 +60,8 @@ class Command(BaseCommand):
# Delete data from our preset list
if normalized_name in extra_records_to_prune:
# The 'keep' field expects a Suborganization but we just pass in a string, so this is just a workaround.
# This assumes that there is only one item in the name_group array (see usda/oc example). Should be fine, given our data.
# This assumes that there is only one item in the name_group array (see usda/oc example).
# But this should be fine, given our data.
hardcoded_record_name = extra_records_to_prune[normalized_name]["replace_with"]
name_group = name_groups.get(normalize_string(hardcoded_record_name))
keep = name_group[0] if name_group else None