Merge branch 'master' of gitlab.prodcontest.ru:team-15/project

This commit is contained in:
Timur
2025-03-04 02:21:07 +03:00
4 changed files with 126 additions and 13 deletions
@@ -0,0 +1,19 @@
# Generated by Django 5.1.6 on 2025-03-03 23:02
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('task', '0003_alter_competitiontaskattachment_task'),
]
operations = [
migrations.AlterField(
model_name='competitiontaskattachment',
name='bind_at',
field=models.CharField(max_length=255, validators=[django.core.validators.RegexValidator('^(?:[a-zA-Z]:\\\\(?:[^<>:\\"\\/\\\\|?*]*\\\\)*|/(?:[^<>:\\"\\/\\\\|?*]+/?)*)$', message='Введите абсолютный путь до папки')], verbose_name='путь сохранения'),
),
]
+1 -1
View File
@@ -35,7 +35,7 @@ def analyze_data_task(self, submission_id):
"code": base64.b64encode(code).decode("utf-8"),
"answer_file_path": submission.task.answer_file_path,
"expected_hash": hashlib.sha256(
submission.task.correct_answer_file.read().decode("utf-8")
submission.task.correct_answer_file.read()
).hexdigest(),
},
timeout=30,
+1 -1
View File
@@ -10,4 +10,4 @@ if [ "$DJANGO_CREATE_SUPERUSER" = "True" ]; then
python manage.py createsuperuser --noinput --username "$DJANGO_SUPERUSER_USERNAME" --email "$DJANGO_SUPERUSER_EMAIL" || true
fi
python manage.py init_achievments
python manage.py init_achievments