mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-28 03:53:45 +02:00
Lint
This commit is contained in:
parent
bff98996e8
commit
2fa8366206
3 changed files with 91 additions and 97 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue