We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e422e2a commit 9a55a41Copy full SHA for 9a55a41
lms/djangoapps/course_home_api/outline/serializers.py
@@ -82,7 +82,11 @@ def get_vertical_icon_class(block):
82
video
83
"""
84
children = block.get('children', [])
85
- child_classes = {value for child in children for value in (child.get('type'), child.get('icon_class'))}
+ child_classes = {
86
+ value
87
+ for child in children
88
+ for value in (child.get('type'), child.get('icon_class'))
89
+ }
90
if 'problem' in child_classes:
91
return 'problem'
92
if 'video' in child_classes:
0 commit comments