Merge pull request #194 from QingdaoU/fix_rejudge

rejudge fix
This commit is contained in:
李扬 2018-11-26 12:59:43 +08:00 committed by GitHub
commit f94223e5c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,6 @@ class SubmissionRejudgeAPI(APIView):
submission = Submission.objects.select_related("problem").get(id=id, contest_id__isnull=True)
except Submission.DoesNotExist:
return self.error("Submission does not exists")
submission.info = {}
submission.statistic_info = {}
submission.save()