Skip to content

Commit

Permalink
allowing removal of single species Id
Browse files Browse the repository at this point in the history
  • Loading branch information
BryonLewis committed Oct 29, 2024
1 parent 5de7c1b commit e3ab5f4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion bats_ai/core/views/recording.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ def patch_annotation(
annotation_instance.save()

# Clear existing species associations
if species_ids:
if species_ids is not None:
annotation_instance.species.clear()
# Add species to the annotation based on the provided species_ids
for species_id in species_ids:
Expand Down
1 change: 0 additions & 1 deletion client/src/components/SpectrogramViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export default defineComponent({
const imageCursorRef: Ref<HTMLElement | undefined> = ref();
const tileURL = props.spectroInfo.spectroId ? `${window.location.protocol}//${window.location.hostname}:${window.location.port}/api/v1/dynamic/spectrograms/${props.spectroInfo.spectroId}/tiles/{z}/{x}/{y}.png/` : "";
const setCursor = (newCursor: string) => {
console.log(`Setting Cursor: ${newCursor}`);
cursor.value = newCursor;
};
Expand Down

0 comments on commit e3ab5f4

Please sign in to comment.