mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-24 11:38:39 +02:00
Revert U.S. China duplicate for later ticket
This commit is contained in:
parent
e16f5b6598
commit
41b13e5645
2 changed files with 4 additions and 3 deletions
|
@ -34,7 +34,7 @@ class Command(BaseCommand):
|
|||
"Chemical Safety Board": "U.S. Chemical Safety Board",
|
||||
"Nuclear Waste Technical Review Board": "U.S. Nuclear Waste Technical Review Board",
|
||||
"State, Local, and Tribal Government": "Non-Federal Agency",
|
||||
"U.S. China Economic and Security Review Commission": "U.S.-China Economic and Security Review Commission",
|
||||
# "U.S. China Economic and Security Review Commission": "U.S.-China Economic and Security Review Commission",
|
||||
}
|
||||
|
||||
def find_federal_agency_row(self, domain_object):
|
||||
|
|
|
@ -176,6 +176,7 @@ class FederalAgency(TimeStampedModel):
|
|||
"U.S. Agency for International Development",
|
||||
"U.S. Capitol Police",
|
||||
"U.S. Chemical Safety Board",
|
||||
"U.S. China Economic and Security Review Commission",
|
||||
"U.S. Commission for the Preservation of Americas Heritage Abroad",
|
||||
"U.S. Commission of Fine Arts",
|
||||
"U.S. Commission on Civil Rights",
|
||||
|
@ -216,7 +217,7 @@ class FederalAgency(TimeStampedModel):
|
|||
logger.info("Creating federal agency table.")
|
||||
|
||||
try:
|
||||
for agency in AGENCIES:
|
||||
FederalAgency.objects.update_or_create(agency=agency)
|
||||
agencies = [FederalAgency(agency=agency) for agency in AGENCIES]
|
||||
FederalAgency.objects.bulk_create(agencies, ["agency"])
|
||||
except Exception as e:
|
||||
logger.error(f"Error creating federal agencies: {e}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue