Make proceedings generation more robust. Commit ready for merge.

- Legacy-Id: 9618
This commit is contained in:
Ryan Cross 2015-05-11 23:03:29 +00:00
parent 9d43c3b526
commit e99af9319c

View file

@ -80,7 +80,8 @@ def get_extras(meeting):
groups = []
sessions = Session.objects.filter(meeting=meeting).exclude(group__parent__acronym__in=('app','gen','int','ops','rai','rtg','sec','tsv','irtf'))
for session in sessions:
if get_timeslot(session).type.slug == 'session' and session.materials.all():
timeslot = get_timeslot(session)
if timeslot and timeslot.type.slug == 'session' and session.materials.all():
groups.append(session.group)
return groups