def _create_block_record_list(self, blocks, user_id=None): """ Creates and returns a BlockRecordList for the given blocks. """ block_record_list = BlockRecordList.from_list(blocks, self.course_key) return VisibleBlocks.cached_get_or_create(user_id or self.user_id, block_record_list)
def _create_block_record_list(self, blocks): """ Creates and returns a BlockRecordList for the given blocks. """ return VisibleBlocks.cached_get_or_create( BlockRecordList.from_list(blocks, self.course_key))
def _create_block_record_list(self, blocks): """ Creates and returns a BlockRecordList for the given blocks. """ return VisibleBlocks.cached_get_or_create(BlockRecordList.from_list(blocks, self.course_key))