Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
Add overwrite_check_percentage field to BlossomUser
Browse files Browse the repository at this point in the history
  • Loading branch information
TimJentzsch committed Jan 6, 2022
1 parent bd410a6 commit fd73ebf
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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),
),
]
6 changes: 6 additions & 0 deletions authentication/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit fd73ebf

Please sign in to comment.