Skip to content

Commit

Permalink
[pre-commit.ci lite] apply automatic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci-lite[bot] authored May 23, 2024
1 parent 7b89f69 commit 094e1fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kolibri/core/exams/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def to_internal_value(self, data):
else:
# Otherwise we are just updating the exam, so allow a partial update
self.partial = True

question_sources = data.get("question_sources", [])
data["question_count"] = sum(
len(source.get("questions", [])) for source in question_sources
Expand Down

0 comments on commit 094e1fa

Please sign in to comment.