From ac52ce659570c96d63aeb719c054522b1a7f08a6 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Wed, 20 May 2020 19:41:25 +0000 Subject: [PATCH] Updated the NomCom eligibility calculation to use the last 5 in-person meetings, in accordance with draft-iesg-nomcom-eligibility-2020-03 which has now been approved for publication. The code will need revisiting when the long-term policy is available. - Legacy-Id: 17859 --- ietf/nomcom/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ietf/nomcom/views.py b/ietf/nomcom/views.py index 3a10df293..e979b5066 100644 --- a/ietf/nomcom/views.py +++ b/ietf/nomcom/views.py @@ -1244,7 +1244,9 @@ def eligible(request, year): # today's date makes sense; for previous nomcoms, we should probably get # the date of the announcement of the Call for Volunteers, instead date = datetime.date.today() - previous_five = Meeting.objects.filter(type='ietf',date__lte=date).order_by('-date')[:5] + previous_five = ( Meeting.objects.filter(type='ietf',date__lte=date) + .exclude(city='').exclude(city='Virtual') + .order_by('-date')[:5] ) log.assertion("len(previous_five) == 5") attendees = {} potentials = set()