diff --git a/bats_ai/core/migrations/0011_alter_annotations_options_annotations_confidence_and_more.py b/bats_ai/core/migrations/0011_alter_annotations_options_annotations_confidence_and_more.py index cfbcf66..4269fb1 100644 --- a/bats_ai/core/migrations/0011_alter_annotations_options_annotations_confidence_and_more.py +++ b/bats_ai/core/migrations/0011_alter_annotations_options_annotations_confidence_and_more.py @@ -1,4 +1,4 @@ -# Generated by Django 4.1.13 on 2024-12-02 15:22 +# Generated by Django 4.1.13 on 2024-12-09 15:26 from django.conf import settings import django.core.validators @@ -22,7 +22,14 @@ class Migration(migrations.Migration): migrations.AddField( model_name='annotations', name='confidence', - field=models.FloatField(blank=True, null=True), + field=models.FloatField( + default=1.0, + help_text='A confidence value between 0 and 1.0, default is 1.0.', + validators=[ + django.core.validators.MinValueValidator(0.0), + django.core.validators.MaxValueValidator(1.0), + ], + ), ), migrations.AddField( model_name='annotations', diff --git a/bats_ai/core/migrations/0012_alter_annotations_confidence.py b/bats_ai/core/migrations/0012_alter_annotations_confidence.py deleted file mode 100644 index f9c75a0..0000000 --- a/bats_ai/core/migrations/0012_alter_annotations_confidence.py +++ /dev/null @@ -1,25 +0,0 @@ -# Generated by Django 4.1.13 on 2024-12-02 16:31 - -import django.core.validators -from django.db import migrations, models - - -class Migration(migrations.Migration): - dependencies = [ - ('core', '0011_alter_annotations_options_annotations_confidence_and_more'), - ] - - operations = [ - migrations.AlterField( - model_name='annotations', - name='confidence', - field=models.FloatField( - default=1.0, - help_text='A confidence value between 0 and 1.0, default is 1.0.', - validators=[ - django.core.validators.MinValueValidator(0.0), - django.core.validators.MaxValueValidator(1.0), - ], - ), - ), - ] diff --git a/client/src/components/RecordingAnnotationEditor.vue b/client/src/components/RecordingAnnotationEditor.vue index bd1aea6..ecff290 100644 --- a/client/src/components/RecordingAnnotationEditor.vue +++ b/client/src/components/RecordingAnnotationEditor.vue @@ -1,8 +1,7 @@