feature/prepare-example-tests #19

Merged
s470631 merged 2 commits from feature/prepare-example-tests into master 2021-12-14 00:20:07 +01:00
Showing only changes of commit fa0a6c2229 - Show all commits

View File

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