mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-21 20:09:23 +02:00
fix script
This commit is contained in:
parent
e798410ac4
commit
df3f37bf40
2 changed files with 2 additions and 2 deletions
|
@ -754,7 +754,7 @@ Example: `cf ssh getgov-za`
|
||||||
| 1 | **emailTo** | Specifies where the email will be emailed. Defaults to help@get.gov on production. |
|
| 1 | **emailTo** | Specifies where the email will be emailed. Defaults to help@get.gov on production. |
|
||||||
|
|
||||||
## Populate federal agency initials and FCEB
|
## Populate federal agency initials and FCEB
|
||||||
This script adds to the "is_fceb" and "initials" fields on the FederalAgency model. This script expects a CSV of federal CIOs to pull from, which can be sourced from [here](https://docs.google.com/spreadsheets/d/14oXHFpKyUXS5_mDWARPusghGdHCrP67jCleOknaSx38/edit?gid=479328070#gid=479328070).
|
This script adds to the "is_fceb" and "acronym" fields on the FederalAgency model. This script expects a CSV of federal CIOs to pull from, which can be sourced from [here](https://docs.google.com/spreadsheets/d/14oXHFpKyUXS5_mDWARPusghGdHCrP67jCleOknaSx38/edit?gid=479328070#gid=479328070).
|
||||||
|
|
||||||
### Running on sandboxes
|
### Running on sandboxes
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ class Command(BaseCommand, PopulateScriptTemplate):
|
||||||
self.federal_agency_dict[agency_name.strip()] = (initials, agency_status)
|
self.federal_agency_dict[agency_name.strip()] = (initials, agency_status)
|
||||||
|
|
||||||
# Update every federal agency record
|
# Update every federal agency record
|
||||||
self.mass_update_records(FederalAgency, {"agency__isnull": False}, ["initials", "is_fceb"])
|
self.mass_update_records(FederalAgency, {"agency__isnull": False}, ["acronym", "is_fceb"])
|
||||||
|
|
||||||
def update_record(self, record: FederalAgency):
|
def update_record(self, record: FederalAgency):
|
||||||
"""For each record, update the initials and is_fceb field if data exists for it"""
|
"""For each record, update the initials and is_fceb field if data exists for it"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue