Merged in [11697] from rcross@amsl.com:

Changed check_audio_files() to only consider sessions on the official
schedule.  Fixes some 500 errors.
 - Legacy-Id: 11706
Note: SVN reference [11697] has been migrated to Git commit 2e02011725
This commit is contained in:
Henrik Levkowetz 2016-07-18 10:55:47 +00:00
commit 4e31c4ed12

View file

@ -40,11 +40,11 @@ def check_audio_files(group,meeting):
Example: ietf90-salonb-20140721-1710-pm3.mp3
'''
for session in Session.objects.filter(group=group,meeting=meeting,status='sched'):
try:
timeslot = session.official_timeslotassignment().timeslot
except IndexError:
continue
for session in Session.objects.filter(group=group,
meeting=meeting,
status=('sched'),
timeslotassignments__schedule=meeting.agenda):
timeslot = session.official_timeslotassignment().timeslot
if not (timeslot.location and timeslot.time):
continue
room = timeslot.location.name.lower()