Add interactive option

This commit is contained in:
cuom1999 2022-04-14 14:14:58 -05:00
parent 122cd0fa73
commit ff8f12c134
6 changed files with 112 additions and 5 deletions

View file

@ -33,6 +33,7 @@ CHECKERS = (
('linecount', _('Line-by-line')),
('custom', _('Custom checker (PY)')),
('customval', _('Custom validator (CPP)')),
('interact', _('Interactive')),
)
@ -61,6 +62,13 @@ class ProblemData(models.Model):
blank=True,
upload_to=problem_directory_file,
validators=[FileExtensionValidator(allowed_extensions=['cpp'])])
interactive_judge = models.FileField(verbose_name=_('interactive judge'),
storage=problem_data_storage,
null=True,
blank=True,
upload_to=problem_directory_file,
validators=[FileExtensionValidator(allowed_extensions=['cpp'])])
__original_zipfile = None
def __init__(self, *args, **kwargs):