Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
BryonLewis committed Jan 5, 2024
1 parent 751bb7f commit 0e4f3e6
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 14 deletions.
2 changes: 1 addition & 1 deletion bats_ai/core/fixtures/species.json
Original file line number Diff line number Diff line change
Expand Up @@ -1007,4 +1007,4 @@
"species_code_6": "NYCSPP"
}
}
]
]
22 changes: 18 additions & 4 deletions bats_ai/core/migrations/0003_annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('core', '0002_species'),
Expand All @@ -16,14 +15,29 @@ class Migration(migrations.Migration):
migrations.CreateModel(
name='Annotations',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
(
'id',
models.BigAutoField(
auto_created=True, primary_key=True, serialize=False, verbose_name='ID'
),
),
('start_time', models.IntegerField(blank=True, null=True)),
('end_time', models.IntegerField(blank=True, null=True)),
('low_freq', models.IntegerField(blank=True, null=True)),
('high_freq', models.IntegerField(blank=True, null=True)),
('comments', models.TextField(blank=True, null=True)),
('owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
('recording', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.recording')),
(
'owner',
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL
),
),
(
'recording',
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE, to='core.recording'
),
),
('species', models.ManyToManyField(to='core.species')),
],
),
Expand Down
10 changes: 1 addition & 9 deletions bats_ai/core/views/species.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
from datetime import datetime
import logging

from django.contrib.auth.models import User
from django.core.files.storage import default_storage
from django.http import HttpRequest
from ninja import File, Form, Schema
from ninja.errors import HttpError
from ninja.files import UploadedFile
from ninja import Schema
from ninja.pagination import RouterPaginated
from oauth2_provider.models import AccessToken

from bats_ai.core.models import Species

Expand All @@ -27,8 +21,6 @@ class SpeciesSchema(Schema):
species_code_6: str | None




@router.get('/')
def get_species(request: HttpRequest):
species = Species.objects.values()
Expand Down

0 comments on commit 0e4f3e6

Please sign in to comment.