-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set oicompare language to user's language (#403)
* Set oicompare language to user's language * Remove debug * Fix bug * Allow changing oicompare format * Change test for oicompare
- Loading branch information
1 parent
9d763fb
commit b82ae56
Showing
10 changed files
with
189 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
oioioi/programs/migrations/0020_programsubmission_user_language_code_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Generated by Django 4.2.16 on 2024-09-15 21:27 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import oioioi.base.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('contests', '0018_contest_show_contest_rules'), | ||
('programs', '0019_add_limits_override'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='programsubmission', | ||
name='user_language_code', | ||
field=models.CharField(blank=True, max_length=6, null=True, verbose_name='User language code'), | ||
), | ||
migrations.CreateModel( | ||
name='CheckerFormatForProblem', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('format', oioioi.base.fields.EnumField(max_length=64, verbose_name='format')), | ||
('problem_instance', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='contests.probleminstance', verbose_name='problem instance')), | ||
], | ||
options={ | ||
'verbose_name': 'checker format for problem', | ||
'verbose_name_plural': 'checker formats for problems', | ||
'ordering': ('problem_instance',), | ||
'unique_together': {('problem_instance', 'format')}, | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='CheckerFormatForContest', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('format', oioioi.base.fields.EnumField(help_text="Format of the checker output for this contest. Abbreviated describes the output difference, while Terse doesn't give any details.", max_length=64, verbose_name='format')), | ||
('contest', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='contests.contest', verbose_name='contest')), | ||
], | ||
options={ | ||
'verbose_name': 'checker format for contest', | ||
'verbose_name_plural': 'checker formats for contests', | ||
'ordering': ('contest',), | ||
'unique_together': {('contest', 'format')}, | ||
}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# These dependencies need to be installed from external sources, | ||
# therefore they must be listed here. Moreover, they cannot be listed in | ||
# setup.py, as pip is not able to install them. | ||
http://github.com/sio2project/sioworkers/archive/refs/tags/v1.5.2.tar.gz | ||
http://github.com/sio2project/sioworkers/archive/refs/tags/v1.5.3.tar.gz | ||
|
||
-e . |