mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-06 09:45:23 +02:00
Update csv_export.py
This commit is contained in:
parent
39f290424b
commit
65c0da6705
1 changed files with 1 additions and 1 deletions
|
@ -602,7 +602,6 @@ def get_sliced_domains(filter_condition):
|
|||
|
||||
def get_sliced_requests(filter_condition):
|
||||
"""Get filtered requests counts sliced by org type and election office."""
|
||||
|
||||
requests = DomainRequest.objects.all().filter(**filter_condition).distinct()
|
||||
requests_count = requests.count()
|
||||
federal = requests.filter(generic_org_type=DomainRequest.OrganizationChoices.FEDERAL).distinct().count()
|
||||
|
@ -634,6 +633,7 @@ def get_sliced_requests(filter_condition):
|
|||
election_board,
|
||||
]
|
||||
|
||||
|
||||
def export_data_managed_domains_to_csv(csv_file, start_date, end_date):
|
||||
"""Get counts for domains that have domain managers for two different dates,
|
||||
get list of managed domains at end_date."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue