Skip to content

Commit

Permalink
linting client
Browse files Browse the repository at this point in the history
  • Loading branch information
BryonLewis committed Dec 9, 2024
1 parent b85b864 commit 841b827
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 43 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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',
Expand Down
25 changes: 0 additions & 25 deletions bats_ai/core/migrations/0012_alter_annotations_confidence.py

This file was deleted.

3 changes: 1 addition & 2 deletions client/src/components/RecordingAnnotationEditor.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<script lang="ts">
import { computed, defineComponent, PropType, ref, Ref, watch } from "vue";
import { SpectroInfo } from './geoJS/geoJSUtils';
import { deleteAnnotation, deleteFileAnnotation, deleteTemporalAnnotation, FileAnnotation, patchAnnotation, patchFileAnnotation, patchTemporalAnnotation, Species, SpectrogramAnnotation, SpectrogramTemporalAnnotation, UpdateFileAnnotation } from "../api/api";
import useState from "../use/useState";
import { deleteFileAnnotation, FileAnnotation, patchFileAnnotation, Species, UpdateFileAnnotation } from "../api/api";
import SpeciesInfo from "./SpeciesInfo.vue";
export default defineComponent({
name: "AnnotationEditor",
Expand Down
12 changes: 3 additions & 9 deletions client/src/components/RecordingAnnotationSummary.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
<script lang="ts">
import { defineComponent, onMounted, PropType, Ref } from "vue";
import { SpectroInfo } from './geoJS/geoJSUtils';
import useState from "../use/useState";
import { watch, ref } from "vue";
import AnnotationEditor from "./AnnotationEditor.vue";
import { FileAnnotation, getFileAnnotations, putFileAnnotation, Species, SpectrogramAnnotation, SpectrogramTemporalAnnotation, UpdateFileAnnotation } from "../api/api";
import RecordingAnnotationEditor from "./RecordingAnnotationEditor.vue";
import { defineComponent, PropType } from "vue";
import { FileAnnotation } from "../api/api";
export default defineComponent({
name: "AnnotationList",
components: {
RecordingAnnotationEditor,
},
props: {
fileAnnotations: {
Expand All @@ -18,7 +12,7 @@ export default defineComponent({
},
},
emits: [],
setup(props) {
setup() {
return {
};
Expand Down
7 changes: 2 additions & 5 deletions client/src/components/RecordingAnnotations.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
<script lang="ts">
import { defineComponent, onMounted, PropType, Ref } from "vue";
import { SpectroInfo } from './geoJS/geoJSUtils';
import useState from "../use/useState";
import { watch, ref } from "vue";
import AnnotationEditor from "./AnnotationEditor.vue";
import { FileAnnotation, getFileAnnotations, putFileAnnotation, Species, SpectrogramAnnotation, SpectrogramTemporalAnnotation, UpdateFileAnnotation } from "../api/api";
import { ref } from "vue";
import { FileAnnotation, getFileAnnotations, putFileAnnotation, Species, UpdateFileAnnotation } from "../api/api";
import RecordingAnnotationEditor from "./RecordingAnnotationEditor.vue";
export default defineComponent({
name: "AnnotationList",
Expand Down

0 comments on commit 841b827

Please sign in to comment.