Add pre-ads to .ad aliases. Keep draft aliases for drafts that have become RFCs for some time. Commit ready to merge.
- Legacy-Id: 9306
This commit is contained in:
parent
33c9483749
commit
5fb3198368
|
@ -133,7 +133,8 @@ if __name__ == '__main__':
|
|||
for draft in interesting_drafts.distinct().iterator():
|
||||
# Omit RFCs, we care only about drafts
|
||||
if draft.docalias_set.filter(name__startswith='rfc'):
|
||||
continue
|
||||
if (datetime.datetime.now() - draft.latest_event(type='published_rfc').time) > datetime.timedelta(days= 365 * 3 ):
|
||||
continue
|
||||
|
||||
alias = draft.name
|
||||
all = []
|
||||
|
|
|
@ -48,7 +48,7 @@ def get_area_ads_emails(area):
|
|||
if area.acronym == 'none':
|
||||
return []
|
||||
emails = [r.email.email_address()
|
||||
for r in area.role_set.filter(name__in=('ad', 'chair'))]
|
||||
for r in area.role_set.filter(name__in=('pre-ad', 'ad', 'chair'))]
|
||||
return filter(None, emails)
|
||||
|
||||
def get_group_ads_emails(wg):
|
||||
|
|
Loading…
Reference in a new issue