Skip to content

Commit 2e02011

Browse files
committed
Changed check_audio_files() to only consider sessions on the official
schedule. Fixes some 500 errors. Commit ready to merge. - Legacy-Id: 11697
1 parent 5307dc1 commit 2e02011

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

ietf/secr/proceedings/proc_utils.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ def check_audio_files(group,meeting):
4040
Example: ietf90-salonb-20140721-1710-pm3.mp3
4141
4242
'''
43-
for session in Session.objects.filter(group=group,meeting=meeting,status='sched'):
44-
try:
45-
timeslot = session.official_timeslotassignment().timeslot
46-
except IndexError:
47-
continue
43+
for session in Session.objects.filter(group=group,
44+
meeting=meeting,
45+
status=('sched'),
46+
timeslotassignments__schedule=meeting.agenda):
47+
timeslot = session.official_timeslotassignment().timeslot
4848
if not (timeslot.location and timeslot.time):
4949
continue
5050
room = timeslot.location.name.lower()

0 commit comments

Comments
 (0)