mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-28 08:30:56 +02:00
Add ready_at column and test date range against it for READY domains (growth report)
This commit is contained in:
parent
cb16f5eb96
commit
4b38c4abc8
7 changed files with 60 additions and 13 deletions
|
@ -39,6 +39,7 @@ def write_row(writer, columns, domain_info):
|
|||
"Status": domain_info.domain.state,
|
||||
"Expiration date": domain_info.domain.expiration_date,
|
||||
"Created at": domain_info.domain.created_at,
|
||||
"Ready at": domain_info.domain.ready_at,
|
||||
"Deleted at": domain_info.domain.deleted_at,
|
||||
}
|
||||
writer.writerow([FIELDS.get(column, "") for column in columns])
|
||||
|
@ -205,6 +206,7 @@ def export_data_growth_to_csv(csv_file, start_date, end_date):
|
|||
"State",
|
||||
"Status",
|
||||
"Created at",
|
||||
"Ready at",
|
||||
"Deleted at",
|
||||
"Expiration date",
|
||||
]
|
||||
|
@ -214,8 +216,8 @@ def export_data_growth_to_csv(csv_file, start_date, end_date):
|
|||
]
|
||||
filter_condition = {
|
||||
"domain__state__in": [Domain.State.READY],
|
||||
"domain__created_at__lt": end_date_formatted,
|
||||
"domain__created_at__gt": start_date_formatted,
|
||||
"domain__ready_at__lt": end_date_formatted,
|
||||
"domain__ready_at__gt": start_date_formatted,
|
||||
}
|
||||
|
||||
# We also want domains deleted between sar and end dates, sorted
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue