Skip to content

Commit

Permalink
update v3 tags
Browse files Browse the repository at this point in the history
  • Loading branch information
russbiggs committed Aug 20, 2024
1 parent aaf1734 commit 7b84550
Show file tree
Hide file tree
Showing 11 changed files with 85 additions and 105 deletions.
5 changes: 2 additions & 3 deletions openaq_api/openaq_api/v3/routers/instruments.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

router = APIRouter(
prefix="/v3",
tags=["v3-alpha"],
tags=["v3"],
include_in_schema=True,
)

Expand Down Expand Up @@ -76,8 +76,7 @@ class InstrumentsSorting(SortingBase):
)


class InstrumentsQueries(Paging, InstrumentsSorting):
...
class InstrumentsQueries(Paging, InstrumentsSorting): ...


@router.get(
Expand Down
2 changes: 1 addition & 1 deletion openaq_api/openaq_api/v3/routers/licenses.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

router = APIRouter(
prefix="/v3",
tags=["v3-alpha"],
tags=["v3"],
include_in_schema=True,
)

Expand Down
2 changes: 1 addition & 1 deletion openaq_api/openaq_api/v3/routers/locations.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

router = APIRouter(
prefix="/v3",
tags=["v3-alpha"],
tags=["v3"],
include_in_schema=True,
)

Expand Down
5 changes: 2 additions & 3 deletions openaq_api/openaq_api/v3/routers/manufacturers.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

router = APIRouter(
prefix="/v3",
tags=["v3-alpha"],
tags=["v3"],
include_in_schema=True,
)

Expand Down Expand Up @@ -58,8 +58,7 @@ class InstrumentsSorting(SortingBase):
)


class ManufacturersQueries(Paging, InstrumentsSorting):
...
class ManufacturersQueries(Paging, InstrumentsSorting): ...


@router.get(
Expand Down
4 changes: 1 addition & 3 deletions openaq_api/openaq_api/v3/routers/measurements.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

router = APIRouter(
prefix="/v3",
tags=["v3-alpha"],
tags=["v3"],
include_in_schema=True,
)

Expand Down Expand Up @@ -64,8 +64,6 @@ async def measurements_get(
return response




async def fetch_measurements(q, db):
query = QueryBuilder(q)
dur = "01:00:00"
Expand Down
5 changes: 2 additions & 3 deletions openaq_api/openaq_api/v3/routers/owners.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

router = APIRouter(
prefix="/v3",
tags=["v3-alpha"],
tags=["v3"],
include_in_schema=True,
)

Expand Down Expand Up @@ -59,8 +59,7 @@ class OwnersSorting(SortingBase):
)


class OwnersQueries(Paging, OwnersSorting):
...
class OwnersQueries(Paging, OwnersSorting): ...


@router.get(
Expand Down
5 changes: 2 additions & 3 deletions openaq_api/openaq_api/v3/routers/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

router = APIRouter(
prefix="/v3",
tags=["v3-alpha"],
tags=["v3"],
include_in_schema=True,
)

Expand Down Expand Up @@ -135,8 +135,7 @@ class ParametersQueries(
RadiusQuery,
ParameterTypeQuery,
ParametersSorting,
):
...
): ...


@router.get(
Expand Down
2 changes: 1 addition & 1 deletion openaq_api/openaq_api/v3/routers/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

router = APIRouter(
prefix="/v3",
tags=["v3-alpha"],
tags=["v3"],
include_in_schema=True,
)

Expand Down
Loading

0 comments on commit 7b84550

Please sign in to comment.