From 7ee58fb21ca8c702a7718f77a4f2969021d3a1f3 Mon Sep 17 00:00:00 2001 From: Vik Paruchuri Date: Fri, 1 Mar 2013 17:09:28 -0500 Subject: [PATCH] Add in a todo --- lms/djangoapps/open_ended_grading/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lms/djangoapps/open_ended_grading/views.py b/lms/djangoapps/open_ended_grading/views.py index f183b8bd0a..beae034105 100644 --- a/lms/djangoapps/open_ended_grading/views.py +++ b/lms/djangoapps/open_ended_grading/views.py @@ -95,6 +95,8 @@ def peer_grading(request, course_id): base_course_url = reverse('courses') try: + #TODO: This will not work with multiple runs of a course. Make it work. The last key in the Location passed + #to get_items is called revision. Is this the same as run? items = modulestore().get_items(['i4x', None, course_id_parts[1], 'peergrading', None]) items = [i for i in items if i.metadata.get("use_for_single_location", True) in false_dict] item_location = items[0].location