From 41f3154db353922444fd97b7fe2c2394740d9913 Mon Sep 17 00:00:00 2001 From: Rachid Mrad Date: Thu, 29 Feb 2024 21:34:04 -0500 Subject: [PATCH] fix rows concatenation --- src/registrar/utility/csv_export.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/registrar/utility/csv_export.py b/src/registrar/utility/csv_export.py index ef531ee60..cfba886d5 100644 --- a/src/registrar/utility/csv_export.py +++ b/src/registrar/utility/csv_export.py @@ -184,9 +184,10 @@ def write_csv( # It indicates that DomainInformation.domain is None. logger.error("csv_export -> Error when parsing row, domain was None") continue - total_body_rows.append(rows) + total_body_rows.extend(rows) - update_columns_with_domain_managers(columns, max_dm_count) + if get_domain_managers: + update_columns_with_domain_managers(columns, max_dm_count) if should_write_header: write_header(writer, columns) writer.writerows(total_body_rows)