Skip to content

Commit

Permalink
fix: fixes a updated grades and assignments count
Browse files Browse the repository at this point in the history
  • Loading branch information
arslanashraf7 committed Nov 12, 2021
1 parent 66c92ec commit 53023a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lms/djangoapps/instructor_task/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ def get_task_completion_info(instructor_task): # lint-amnesty, pylint: disable=
elif course_id is not None:
# this reports on actions for a course as a whole
results = task_output.get('results', {})
assignments_count = len(results.get("assignments", {}))
grades_count = len(results.get("grades", {}))
assignments_count = results.get("assignments", 0)
grades_count = results.get("grades", 0)

msg_format = _("{grades_count} grades and {assignments_count} assignments updated or created").format(
grades_count=grades_count,
Expand Down

0 comments on commit 53023a0

Please sign in to comment.