From 3194fc94a049cbe33d89768dbbd0cb7a16fc1aef Mon Sep 17 00:00:00 2001 From: zandercymatics <141044360+zandercymatics@users.noreply.github.com> Date: Thu, 13 Jun 2024 09:15:18 -0600 Subject: [PATCH] Include cisa rep first and last --- src/registrar/utility/csv_export.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/registrar/utility/csv_export.py b/src/registrar/utility/csv_export.py index e1f402df8..1a35c8164 100644 --- a/src/registrar/utility/csv_export.py +++ b/src/registrar/utility/csv_export.py @@ -913,7 +913,11 @@ class DomainRequestExport: human_readable_election_board = "Yes" if is_election_board else "No" # Handle the additional details field. Pipe seperated. - cisa_rep = request.get("cisa_representative_email") + cisa_rep_first = request.get("cisa_representative_first_name") + cisa_rep_last = request.get("cisa_representative_last_name") + name = [n for n in [cisa_rep_first, cisa_rep_last] if n] + + cisa_rep = " ".join(name) if name else None details = [cisa_rep, request.get("anything_else")] additional_details = " | ".join([field for field in details if field])