feature/prepare-example-tests #19
@ -42,9 +42,7 @@ class TestValidateAPIView(views.APIView):
|
||||
|
||||
def post(self, request, test_id, **kwargs):
|
||||
test = Test.objects.get(id=test_id)
|
||||
import pdb;pdb.set_trace()
|
||||
score = self.get_score(test, request.data["answers"])
|
||||
import pdb;pdb.set_trace()
|
||||
status = score >= test.passing_score
|
||||
return Response({
|
||||
"status": self.PASSED.get(status, self.UNKNOWN),
|
||||
|
Loading…
Reference in New Issue
Block a user