# for each bbb record for the current course, add an option to the field
for record in records:
+ if not record['slot']:
+ continue
webclass_slot = WebclassSlot.objects.get(
pk=record['slot'].id)
label = u"%s à %s - %s" % (record['start_date'].strftime(
pk=int(recording['metadata'].get('slotid', -1)))
except WebclassSlot.DoesNotExist:
# this happen if the slot is deleted in django admin
- continue
+ pass
data.update({
'period_id': int(recording['metadata'].get('periodid', -1)),
'course_id': int(recording['metadata'].get('courseid', -1)),