Skip to content

Commit

Permalink
Evalutation is calculated
Browse files Browse the repository at this point in the history
  • Loading branch information
krishna-ts authored Jul 11, 2024
1 parent a351256 commit 2a987c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lms/djangoapps/course_home_api/assessments/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,12 @@ def to_representation(self, instance):

return representation

def check_grade(merged_subsections, first_component_block_id):
def check_grade(self, merged_subsections, first_component_block_id):
if merged_subsections and first_component_block_id:
for each_one in merged_subsections:
if each_one["block_key"]==first_component_block_id:
return each_one["has_graded_assignment"]
return False
return "Graded" if each_one["has_graded_assignment"] else "Under Review"
return "-"

class AssessmentsSerializer(serializers.Serializer):
"""
Expand Down
2 changes: 1 addition & 1 deletion lms/templates/user_assessment_tracker_link.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ <h1>Assessment Tracker</h1>
<td>{{ item.start_date }}</td>
<td>{{ item.date }}</td>
<td>{{ item.assignment_type }}</td>
<td>{{ item.assignment_type }}</td>
<td>{{ item.is_graded }}</td>
</tr>
{% endfor %}
{% endif %}
Expand Down

0 comments on commit 2a987c2

Please sign in to comment.