diff --git a/authentication/migrations/0006_blossomuser_overwrite_check_percentage.py b/authentication/migrations/0006_blossomuser_overwrite_check_percentage.py new file mode 100644 index 00000000..b7d651d5 --- /dev/null +++ b/authentication/migrations/0006_blossomuser_overwrite_check_percentage.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.10 on 2022-01-06 20:01 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("authentication", "0005_blossomuser_is_bot"), + ] + + operations = [ + migrations.AddField( + model_name="blossomuser", + name="overwrite_check_percentage", + field=models.FloatField(blank=True, default=None, null=True), + ), + ] diff --git a/authentication/models.py b/authentication/models.py index 5652d518..4ef705ec 100644 --- a/authentication/models.py +++ b/authentication/models.py @@ -58,6 +58,12 @@ class Meta: APIKey, on_delete=models.CASCADE, null=True, blank=True ) + # The percentage used to determine if a transcription should be checked by the mods. + # If this is set, it will overwrite the automatically determined percentage + # based on the user's gamma. + # This must be a number between 0 and 1 (inclusive). + overwrite_check_percentage = models.FloatField(null=True, blank=True, default=None) + # The time that this record was last updated. last_update_time = models.DateTimeField(default=timezone.now) # Whether this particular user has accepted our Code of Conduct.