mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-13 04:59:59 +02:00
Get all emails for domain managers and matching header title to be dynamic
This commit is contained in:
parent
0f41d64e0e
commit
a9302a8428
1 changed files with 8 additions and 1 deletions
|
@ -92,6 +92,13 @@ def parse_row(columns, domain_info: DomainInformation, security_emails_dict=None
|
||||||
"Deleted": domain.deleted,
|
"Deleted": domain.deleted,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Get each domain managers email and add to list
|
||||||
|
dm_emails = [dm.email for dm in domain.permissions]
|
||||||
|
|
||||||
|
# Matching header for domain managers to be dynamic
|
||||||
|
for i, dm_email in enumerate(dm_emails, start=1):
|
||||||
|
FIELDS[f"Domain Manager email {i}":dm_email]
|
||||||
|
|
||||||
row = [FIELDS.get(column, "") for column in columns]
|
row = [FIELDS.get(column, "") for column in columns]
|
||||||
return row
|
return row
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue