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

Make proceedings generation more robust.
 - Legacy-Id: 9621
Note: SVN reference [9618] has been migrated to Git commit e99af9319c
This commit is contained in:
Henrik Levkowetz 2015-05-12 04:56:16 +00:00
commit 8a32ffbc05

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