Skip to content

Commit 5cba7fc

Browse files
committed
Added exclusion of cancelled session when doing audio file import. Fixes an server 500 error when a cancelled session is shown in the same room and timeslot as an actual session.
- Legacy-Id: 15752
1 parent 8180716 commit 5cba7fc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

ietf/secr/proceedings/proc_utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ def import_audio_files(meeting):
8282
if unmatched_files:
8383
send_audio_import_warning(unmatched_files)
8484

85-
8685
def get_timeslot_for_filename(filename):
8786
'''Returns a timeslot matching the filename given.
8887
NOTE: currently only works with ietfNN prefix (regular meetings)
@@ -99,7 +98,7 @@ def get_timeslot_for_filename(filename):
9998
location__name=room_mapping[match.groupdict()['room']],
10099
time=time,
101100
sessionassignments__schedule=meeting.agenda,
102-
).distinct()
101+
).exclude(sessions__status_id='canceled').distinct()
103102
return slots.get()
104103
except (ObjectDoesNotExist, KeyError):
105104
return None

0 commit comments

Comments
 (0)