mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-30 21:13:16 +02:00
Add first ready on field
This commit is contained in:
parent
1b6e6debf6
commit
6022cd051f
1 changed files with 6 additions and 2 deletions
|
@ -96,6 +96,7 @@ def parse_row_for_domain(
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
"Domain name": domain.name,
|
"Domain name": domain.name,
|
||||||
"Status": domain.get_state_display(),
|
"Status": domain.get_state_display(),
|
||||||
|
"First ready on": domain.first_ready,
|
||||||
"Expiration date": domain.expiration_date,
|
"Expiration date": domain.expiration_date,
|
||||||
"Domain type": domain_type,
|
"Domain type": domain_type,
|
||||||
"Agency": domain_info.federal_agency,
|
"Agency": domain_info.federal_agency,
|
||||||
|
@ -106,7 +107,6 @@ def parse_row_for_domain(
|
||||||
"AO email": domain_info.authorizing_official.email if domain_info.authorizing_official else " ",
|
"AO email": domain_info.authorizing_official.email if domain_info.authorizing_official else " ",
|
||||||
"Security contact email": security_email,
|
"Security contact email": security_email,
|
||||||
"Created at": domain.created_at,
|
"Created at": domain.created_at,
|
||||||
"First ready": domain.first_ready,
|
|
||||||
"Deleted": domain.deleted,
|
"Deleted": domain.deleted,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -378,13 +378,17 @@ def write_csv_for_requests(
|
||||||
|
|
||||||
|
|
||||||
def export_data_type_to_csv(csv_file):
|
def export_data_type_to_csv(csv_file):
|
||||||
"""All domains report with extra columns"""
|
"""
|
||||||
|
All domains report with extra columns.
|
||||||
|
This maps to the "All domain metadata" button.
|
||||||
|
"""
|
||||||
|
|
||||||
writer = csv.writer(csv_file)
|
writer = csv.writer(csv_file)
|
||||||
# define columns to include in export
|
# define columns to include in export
|
||||||
columns = [
|
columns = [
|
||||||
"Domain name",
|
"Domain name",
|
||||||
"Status",
|
"Status",
|
||||||
|
"First ready on",
|
||||||
"Expiration date",
|
"Expiration date",
|
||||||
"Domain type",
|
"Domain type",
|
||||||
"Agency",
|
"Agency",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue