Commit 4517d858 by Will Daly

Merge pull request #195 from edx/will/ordering-comment

Add a small comment about ordering for scored assessments
parents 87fd72f9 50b0757a
...@@ -100,6 +100,9 @@ def get_score(submission_uuid, requirements): ...@@ -100,6 +100,9 @@ def get_score(submission_uuid, requirements):
return None return None
workflow = PeerWorkflow.objects.get(submission_uuid=submission_uuid) workflow = PeerWorkflow.objects.get(submission_uuid=submission_uuid)
# This query will use the ordering defined by the assessment model
# (descending scored_at, then descending id)
items = workflow.graded_by.filter( items = workflow.graded_by.filter(
assessment__submission_uuid=submission_uuid, assessment__submission_uuid=submission_uuid,
assessment__score_type=PEER_TYPE assessment__score_type=PEER_TYPE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment