Skip to content

Commit d81eb76

Browse files
committed
Fixing bug ietf-tools#636 -- now only displays groups that are actually meeting.
- Legacy-Id: 2978
1 parent 92b7e87 commit d81eb76

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

adam/ietf/meeting/views.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,16 @@ def agenda_info(num=None):
103103
@decorator_from_middleware(GZipMiddleware)
104104
def html_agenda(request, num=None):
105105
timeslots, update, meeting, venue, ads, plenaryw_agenda, plenaryt_agenda = agenda_info(num)
106-
wgs = IETFWG.objects.filter(status=IETFWG.ACTIVE).order_by('group_acronym__acronym')
107-
rgs = IRTF.objects.all().order_by('acronym')
106+
107+
108+
groups_meeting = [];
109+
for slot in timeslots:
110+
for session in slot.sessions():
111+
groups_meeting.append(session.acronym())
112+
groups_meeting = set(groups_meeting);
113+
114+
wgs = IETFWG.objects.filter(status=IETFWG.ACTIVE).filter(group_acronym__acronym__in = groups_meeting).order_by('group_acronym__acronym')
115+
rgs = IRTF.objects.all().filter(acronym__in = groups_meeting).order_by('acronym')
108116
areas = Area.objects.filter(status=Area.ACTIVE).order_by('area_acronym__acronym')
109117

110118
if settings.SERVER_MODE != 'production' and '_testiphone' in request.REQUEST:

0 commit comments

Comments
 (0)