Skip to content

Commit

Permalink
fix: rectify mixed types in gathering mailtrigger recipients (#7932)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjsparks committed Sep 12, 2024
1 parent b8c6cb3 commit 65547a7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ietf/mailtrigger/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,16 +138,16 @@ def gather_group_steering_group(self,**kwargs):
def gather_stream_managers(self, **kwargs):
addrs = []
manager_map = dict(
ise = '<[email protected]>',
irtf = '<[email protected]>',
ietf = '<[email protected]>',
iab = '<[email protected]>',
ise = ['<[email protected]>'],
irtf = ['<[email protected]>'],
ietf = ['<[email protected]>'],
iab = ['<[email protected]>'],
editorial = Role.objects.filter(group__acronym="rsab",name_id="chair").values_list("email__address", flat=True),
)
if 'streams' in kwargs:
for stream in kwargs['streams']:
if stream in manager_map:
addrs.append(manager_map[stream])
addrs.extend(manager_map[stream])
return addrs

def gather_doc_stream_manager(self, **kwargs):
Expand Down Expand Up @@ -234,7 +234,7 @@ def gather_submission_submitter(self, **kwargs):
try:
submitter = Alias.objects.get(name=submission.submitter).person
if submitter and submitter.email():
addrs.extend(["%s <%s>" % (submitter.name, submitter.email().address)])
addrs.append(f"{submitter.name} <{submitter.email().address}>")
except (Alias.DoesNotExist, Alias.MultipleObjectsReturned):
pass
return addrs
Expand Down

0 comments on commit 65547a7

Please sign in to comment.