Commit be0b4208 by Afzal Wali Committed by Muhammad Shoaib

quality fixes

parent 424f1e44
...@@ -13,6 +13,7 @@ from django.contrib.auth.models import User ...@@ -13,6 +13,7 @@ from django.contrib.auth.models import User
from edx_proctoring.exceptions import UserNotFoundException from edx_proctoring.exceptions import UserNotFoundException
from django.db.models.base import ObjectDoesNotExist from django.db.models.base import ObjectDoesNotExist
class ProctoredExam(TimeStampedModel): class ProctoredExam(TimeStampedModel):
""" """
Information about the Proctored Exam. Information about the Proctored Exam.
...@@ -119,7 +120,6 @@ class ProctoredExamStudentAttemptManager(models.Manager): ...@@ -119,7 +120,6 @@ class ProctoredExamStudentAttemptManager(models.Manager):
return self.filter(proctored_exam__course_id=course_id) return self.filter(proctored_exam__course_id=course_id)
def get_filtered_exam_attempts(self, course_id, search_by): def get_filtered_exam_attempts(self, course_id, search_by):
""" """
Returns the Student Exam Attempts for the given course_id filtered by search_by. Returns the Student Exam Attempts for the given course_id filtered by search_by.
...@@ -130,7 +130,6 @@ class ProctoredExamStudentAttemptManager(models.Manager): ...@@ -130,7 +130,6 @@ class ProctoredExamStudentAttemptManager(models.Manager):
return self.filter(filtered_query) return self.filter(filtered_query)
def get_active_student_attempts(self, user_id, course_id=None): def get_active_student_attempts(self, user_id, course_id=None):
""" """
Returns the active student exams (user in-progress exams) Returns the active student exams (user in-progress exams)
......
...@@ -54,8 +54,7 @@ var edx = edx || {}; ...@@ -54,8 +54,7 @@ var edx = edx || {};
}, },
getPaginatedAttempts: function(event) { getPaginatedAttempts: function(event) {
var target = $(event.currentTarget); var target = $(event.currentTarget);
var url = target.data('target-url'); this.collection.url = target.data('target-url');
this.collection.url = url;
this.hydrate(); this.hydrate();
event.stopPropagation(); event.stopPropagation();
event.preventDefault(); event.preventDefault();
......
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