-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[back][front] refactor: score_magnitude -> score_max
- Loading branch information
1 parent
f9d9d04
commit 95dcd6e
Showing
15 changed files
with
136 additions
and
108 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
20 changes: 0 additions & 20 deletions
20
backend/tournesol/migrations/0061_comparisoncriteriascore_score_magnitude.py
This file was deleted.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
backend/tournesol/migrations/0061_comparisoncriteriascore_score_max_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,29 @@ | ||
# Generated by Django 4.2.11 on 2024-05-02 09:05 | ||
|
||
import django.core.validators | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("tournesol", "0060_remove_entity_tournesol_score"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="comparisoncriteriascore", | ||
name="score_max", | ||
field=models.IntegerField( | ||
default=10, | ||
help_text="The absolute value of the maximum score.", | ||
validators=[django.core.validators.MinValueValidator(1)], | ||
), | ||
preserve_default=False, | ||
), | ||
migrations.AlterField( | ||
model_name="comparisoncriteriascore", | ||
name="score", | ||
field=models.FloatField(help_text="Score for the given comparison"), | ||
), | ||
] |
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
Oops, something went wrong.