mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-31 17:53:56 +02:00
Linting
This commit is contained in:
parent
11542c9ca0
commit
d2a8ab16c8
1 changed files with 6 additions and 2 deletions
|
@ -113,7 +113,11 @@ def write_body(
|
||||||
# Store all security emails to avoid epp calls or excessive filters
|
# Store all security emails to avoid epp calls or excessive filters
|
||||||
sec_contact_ids = all_domain_infos.values_list("domain__security_contact_registry_id", flat=True)
|
sec_contact_ids = all_domain_infos.values_list("domain__security_contact_registry_id", flat=True)
|
||||||
security_emails_dict = {}
|
security_emails_dict = {}
|
||||||
public_contacts = PublicContact.objects.only('email', 'domain__name').select_related("domain").filter(registry_id__in=sec_contact_ids)
|
public_contacts = (
|
||||||
|
PublicContact.objects.only("email", "domain__name")
|
||||||
|
.select_related("domain")
|
||||||
|
.filter(registry_id__in=sec_contact_ids)
|
||||||
|
)
|
||||||
|
|
||||||
# Populate a dictionary of domain names and their security contacts
|
# Populate a dictionary of domain names and their security contacts
|
||||||
for contact in public_contacts:
|
for contact in public_contacts:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue