Skip to content

Commit

Permalink
fix: Indented line to to fix PEP violation for course outline seriali…
Browse files Browse the repository at this point in the history
…zer.

Violations:
./lms/djangoapps/course_home_api/outline/serializers.py:33:13: E129 visually indented line with same indent as next logical line
  • Loading branch information
ztraboo committed Apr 12, 2024
1 parent 700564d commit ca91356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lms/djangoapps/course_home_api/outline/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def get_blocks(self, block): # pylint: disable=missing-function-docstring
scored = block.get('scored')

if (settings.FEATURES.get('ENABLE_COURSEWARE_OUTLINE_QUESTION_COUNT') and
num_graded_problems and block_type == 'sequential'):
num_graded_problems and block_type == 'sequential'):
questions = ngettext('({number} Question)', '({number} Questions)', num_graded_problems)
display_name += ' ' + questions.format(number=num_graded_problems)

Expand Down

0 comments on commit ca91356

Please sign in to comment.