Commit b0599ea1 by Vik Paruchuri

Fix queries and some controller query stuff

parent 2191f3e2
...@@ -168,7 +168,7 @@ def _combined_open_ended_grading(tab, user, course, active_page): ...@@ -168,7 +168,7 @@ def _combined_open_ended_grading(tab, user, course, active_page):
user_is_staff = has_access(user, course, 'staff') user_is_staff = has_access(user, course, 'staff')
min_time_to_query = user.last_login min_time_to_query = user.last_login
last_module_seen = StudentModule.objects.all(student=user, course_id = course_id, modified>min_time_to_query).values('modified').order_by('-modified')[0] last_module_seen = StudentModule.objects.all(student=user, course_id = course_id, modified__gt=min_time_to_query).values('modified').order_by('-modified')[0]
last_time_viewed = last_module_seen['modified'] last_time_viewed = last_module_seen['modified']
pending_grading= False pending_grading= False
......
...@@ -16,7 +16,7 @@ class ControllerQueryService(GradingService): ...@@ -16,7 +16,7 @@ class ControllerQueryService(GradingService):
Interface to staff grading backend. Interface to staff grading backend.
""" """
def __init__(self, config): def __init__(self, config):
super(ControllerQuery, self).__init__(config) super(ControllerQueryService, self).__init__(config)
self.check_eta_url = self.url + '/get_submission_eta/' self.check_eta_url = self.url + '/get_submission_eta/'
self.is_unique_url = self.url + '/is_name_unique/' self.is_unique_url = self.url + '/is_name_unique/'
self.combined_notifications_url = self.url + '/combined_notifications/' self.combined_notifications_url = self.url + '/combined_notifications/'
......
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