-
-
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.
Implement 3 different
score_mode
for poll recommendations computed …
…by Mehestan (#869) * Compute global scores in 3 modes and store them in EntityCriteriaScore * Implement ?score_mode parameter on poll recommendations * fix twitterbot after rebase * Update admin for EntityCriteriaScore
- Loading branch information
1 parent
b789114
commit 1cd8131
Showing
16 changed files
with
298 additions
and
125 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
32 changes: 32 additions & 0 deletions
32
backend/tournesol/migrations/0038_alter_entitycriteriascore_unique_together_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,32 @@ | ||
# Generated by Django 4.0.3 on 2022-04-29 13:23 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('tournesol', '0037_contributorscaling'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterUniqueTogether( | ||
name='entitycriteriascore', | ||
unique_together=set(), | ||
), | ||
migrations.AddField( | ||
model_name='entitycriteriascore', | ||
name='score_mode', | ||
field=models.CharField(choices=[('default', 'Default'), ('all_equal', 'All Equal'), ('trusted_only', 'Trusted Only')], default='default', max_length=30), | ||
), | ||
migrations.AlterField( | ||
model_name='entitycriteriascore', | ||
name='entity', | ||
field=models.ForeignKey(help_text='Foreign key to the video', on_delete=django.db.models.deletion.CASCADE, related_name='all_criteria_scores', to='tournesol.entity'), | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='entitycriteriascore', | ||
unique_together={('entity', 'poll', 'criteria', 'score_mode')}, | ||
), | ||
] |
Oops, something went wrong.