Update load_senior_official_table.py

This commit is contained in:
zandercymatics 2024-07-29 14:12:35 -06:00
parent a7aa765566
commit 090f339215
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -110,14 +110,7 @@ class Command(BaseCommand):
# Bulk update the SO fields (if any)
if len(updated_rows) > 0:
updated_fields = [
"first_name",
"last_name",
"title",
"email",
"phone",
"federal_agency"
]
updated_fields = ["first_name", "last_name", "title", "email", "phone", "federal_agency"]
SeniorOfficial.objects.bulk_update(updated_rows, updated_fields)
skipped_message = f"Updated {len(updated_rows)} records"