Add in a todo

This commit is contained in:
Vik Paruchuri
2013-03-01 17:09:28 -05:00
parent 55e19f8227
commit 7ee58fb21c

View File

@@ -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