feat: add AST_CHECK_FAILED status, is_accepted helper, ast_rules field

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-25 20:37:58 -06:00
parent 3b4dfe2fe2
commit c36e6623bd
5 changed files with 49 additions and 0 deletions

View File

@@ -83,6 +83,9 @@ class Problem(models.Model):
flowchart_hint = models.TextField(null=True, blank=True)
show_flowchart = models.BooleanField(default=False, db_default=False)
# AST 代码结构检查规则
ast_rules = models.JSONField(null=True, blank=True, default=None)
class Meta:
db_table = "problem"
constraints = [