From 841b827bb93a35ca2e39ce480660012cf6d4718d Mon Sep 17 00:00:00 2001 From: Bryon Lewis Date: Mon, 9 Dec 2024 10:27:23 -0500 Subject: [PATCH] linting client --- ...options_annotations_confidence_and_more.py | 11 ++++++-- .../0012_alter_annotations_confidence.py | 25 ------------------- .../components/RecordingAnnotationEditor.vue | 3 +-- .../components/RecordingAnnotationSummary.vue | 12 +++------ .../src/components/RecordingAnnotations.vue | 7 ++---- 5 files changed, 15 insertions(+), 43 deletions(-) delete mode 100644 bats_ai/core/migrations/0012_alter_annotations_confidence.py 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 @@