Merged [6363] from mcr@sandelman.ca: Don't include timeslots marked

'unavailable' in the agenda.
 - Legacy-Id: 6365
Note: SVN reference [6363] has been migrated to Git commit 8de0d8a0c8814059b153e96929220bed6cb46e2c
This commit is contained in:
Henrik Levkowetz 2013-10-04 14:07:13 +00:00
parent e87ba2d869
commit 03a79d4736

View file

@ -145,7 +145,7 @@ def get_ntimeslots_from_ss(agenda, scheduledsessions):
def get_ntimeslots_from_agenda(agenda):
# now go through the timeslots, only keeping those that are
# sessions/plenary/training and don't occur at the same time
scheduledsessions = agenda.scheduledsession_set.all().order_by("timeslot__time")
scheduledsessions = agenda.scheduledsession_set.all().order_by("timeslot__time").exclude(timeslot__type = "unavail")
ntimeslots = get_ntimeslots_from_ss(agenda, scheduledsessions)
return ntimeslots, scheduledsessions