mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-12-28 16:12:13 +00:00
忽略被封禁用户的提交
This commit is contained in:
parent
3c04216573
commit
a3ee2ea212
@ -1,8 +1,14 @@
|
||||
from __future__ import absolute_import, unicode_literals
|
||||
from celery import shared_task
|
||||
|
||||
from account.models import User
|
||||
from submission.models import Submission
|
||||
from judge.dispatcher import JudgeDispatcher
|
||||
|
||||
|
||||
@shared_task
|
||||
def judge_task(submission_id, problem_id):
|
||||
uid = Submission.objects.get(id=submission_id).user_id
|
||||
if User.objects.get(id=uid).is_disabled:
|
||||
return
|
||||
JudgeDispatcher(submission_id, problem_id).judge()
|
||||
|
Loading…
Reference in New Issue
Block a user