增加比赛的判题
This commit is contained in:
@@ -11,6 +11,7 @@ class Submission(models.Model):
|
||||
result = models.IntegerField(default=result["waiting"])
|
||||
language = models.IntegerField()
|
||||
code = models.TextField()
|
||||
contest_id = models.IntegerField(blank=True, null=True)
|
||||
problem_id = models.IntegerField(db_index=True)
|
||||
# 这个字段可能存储很多数据 比如编译错误、系统错误的时候,存储错误原因字符串
|
||||
# 正常运行的时候存储 lrun 的判题结果,比如cpu时间内存之类的
|
||||
@@ -18,7 +19,6 @@ class Submission(models.Model):
|
||||
accepted_answer_time = models.IntegerField(blank=True, null=True)
|
||||
# 这个字段只有在题目是accepted 的时候才会用到,比赛题目的提交可能还会有得分等信息,存储在这里面
|
||||
accepted_answer_info = models.TextField(blank=True, null=True)
|
||||
is_counted = models.BooleanField(default=False)
|
||||
|
||||
class Meta:
|
||||
db_table = "submission"
|
||||
|
||||
Reference in New Issue
Block a user