Fixed an issue with secr.meetings.views.send_notifications() that could occur if a session didn't have a timeslot set.

- Legacy-Id: 18135
This commit is contained in:
Henrik Levkowetz 2020-07-03 12:44:13 +00:00
parent d5558f07e9
commit c60e915751

View file

@ -136,7 +136,7 @@ def send_notifications(meeting, groups, person):
template = 'meetings/session_schedule_notification.txt'
# easier to populate template from timeslot perspective. assuming one-to-one timeslot-session
items = [ {'session':s, 'timeslot':get_timeslot(s)} for s in sessions ]
items = [ {'session':s, 'timeslot':get_timeslot(s)} for s in sessions if get_timeslot(s) ]
items.sort(key=lambda d: d['timeslot'].time)
for i,d in enumerate(items):
s = d['session']