mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 12:08:40 +02:00
test for should_write_header
This commit is contained in:
parent
f886391093
commit
9622817037
1 changed files with 3 additions and 2 deletions
|
@ -187,7 +187,8 @@ def write_csv(
|
||||||
total_body_rows.append(rows)
|
total_body_rows.append(rows)
|
||||||
|
|
||||||
update_columns_with_domain_managers(columns, max_dm_count)
|
update_columns_with_domain_managers(columns, max_dm_count)
|
||||||
write_header(writer, columns)
|
if should_write_header:
|
||||||
|
write_header(writer, columns)
|
||||||
writer.writerows(total_body_rows)
|
writer.writerows(total_body_rows)
|
||||||
|
|
||||||
|
|
||||||
|
@ -220,7 +221,7 @@ def export_data_type_to_csv(csv_file):
|
||||||
]
|
]
|
||||||
filter_condition = {
|
filter_condition = {
|
||||||
"domain__state__in": [
|
"domain__state__in": [
|
||||||
Domain.State.UNKNOWN,
|
Domain.State.READY,
|
||||||
Domain.State.DNS_NEEDED,
|
Domain.State.DNS_NEEDED,
|
||||||
Domain.State.ON_HOLD,
|
Domain.State.ON_HOLD,
|
||||||
],
|
],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue