Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
BryonLewis committed May 6, 2024
1 parent abb55de commit 04d77f6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion bats_ai/core/admin/recording.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ def compressed_spectrogram_status(self, recording: Recording):
return link
return None


@admin.action(description='Compute Spectrograms')
def compute_spectrograms(self, request: HttpRequest, queryset: QuerySet):
counter = 0
Expand Down
1 change: 1 addition & 0 deletions bats_ai/core/models/recording.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def compressed_spectrogram(self):

return spectrogram


@receiver(models.signals.pre_delete, sender=Recording)
def delete_content(sender, instance, **kwargs):
if instance.audio_file:
Expand Down

0 comments on commit 04d77f6

Please sign in to comment.