Commit c2b32b70 by Vik Paruchuri

Fix location that is queried on

parent ba650202
...@@ -132,7 +132,7 @@ class PeerGradingModule(XModule): ...@@ -132,7 +132,7 @@ class PeerGradingModule(XModule):
def query_data_for_location(self): def query_data_for_location(self):
student_id = self.system.anonymous_student_id student_id = self.system.anonymous_student_id
location = self.system.location location = self.link_to_location
success = False success = False
response = {} response = {}
...@@ -161,7 +161,7 @@ class PeerGradingModule(XModule): ...@@ -161,7 +161,7 @@ class PeerGradingModule(XModule):
success, response = self.query_data_for_location() success, response = self.query_data_for_location()
if not success: if not success:
log.exception("No instance data found and could not get data from controller for loc {0} student {1}".format( log.exception("No instance data found and could not get data from controller for loc {0} student {1}".format(
self.system.location, self.system.anonymous_student_id self.system.location.url(), self.system.anonymous_student_id
)) ))
return None return None
count_graded = response['count_graded'] count_graded = response['count_graded']
......
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