mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-15 14:04:10 +02:00
Update load_senior_official_table.py
This commit is contained in:
parent
a7aa765566
commit
090f339215
1 changed files with 1 additions and 8 deletions
|
@ -110,14 +110,7 @@ class Command(BaseCommand):
|
||||||
|
|
||||||
# Bulk update the SO fields (if any)
|
# Bulk update the SO fields (if any)
|
||||||
if len(updated_rows) > 0:
|
if len(updated_rows) > 0:
|
||||||
updated_fields = [
|
updated_fields = ["first_name", "last_name", "title", "email", "phone", "federal_agency"]
|
||||||
"first_name",
|
|
||||||
"last_name",
|
|
||||||
"title",
|
|
||||||
"email",
|
|
||||||
"phone",
|
|
||||||
"federal_agency"
|
|
||||||
]
|
|
||||||
SeniorOfficial.objects.bulk_update(updated_rows, updated_fields)
|
SeniorOfficial.objects.bulk_update(updated_rows, updated_fields)
|
||||||
|
|
||||||
skipped_message = f"Updated {len(updated_rows)} records"
|
skipped_message = f"Updated {len(updated_rows)} records"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue