From 02a0a123725e43ba4a4c42d419a43dab8e23ba0d Mon Sep 17 00:00:00 2001 From: virusdefender <1670873886@qq.com> Date: Sun, 6 Dec 2015 18:44:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=88=A4=E9=A2=98=E5=BC=80?= =?UTF-8?q?=E5=A7=8B=E6=97=B6=E9=97=B4=E5=92=8C=E7=BB=93=E6=9D=9F=E6=97=B6?= =?UTF-8?q?=E9=97=B4=EF=BC=8C=E4=BE=BF=E4=BA=8E=E6=80=A7=E8=83=BD=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- submission/models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/submission/models.py b/submission/models.py index 660b6d8..a0db4b3 100644 --- a/submission/models.py +++ b/submission/models.py @@ -8,6 +8,10 @@ class Submission(models.Model): id = models.CharField(max_length=32, default=rand_str, primary_key=True, db_index=True) user_id = models.IntegerField(db_index=True) create_time = models.DateTimeField(auto_now_add=True) + # 判题开始时间 + judge_start_time = models.IntegerField(blank=True, null=True) + # 判题结束时间 + judge_end_time = models.IntegerField(blank=True, null=True) result = models.IntegerField(default=result["waiting"]) language = models.IntegerField() code = models.TextField()