Skip to content

Commit

Permalink
Removed async usage left behind
Browse files Browse the repository at this point in the history
  • Loading branch information
keul committed Oct 17, 2024
1 parent 3be99a2 commit 0083d1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cads_catalogue_api_service/vocabularies.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def query_keywords(


@router.get("/licences", response_model=models.Licences)
async def list_licences(
def list_licences(
session=fastapi.Depends(dependencies.get_session),
scope: LicenceScopeCriterion = fastapi.Query(default=LicenceScopeCriterion.all),
portals: list[str] | None = fastapi.Depends(dependencies.get_portals),
Expand Down Expand Up @@ -159,7 +159,7 @@ async def list_licences(


@router.get("/licences/{licence_uid}", response_model=models.Licence)
async def licence_details(
def licence_details(
session=fastapi.Depends(dependencies.get_session),
licence_uid: str = fastapi.Path(..., title="Licence UID"),
) -> models.Licence:
Expand All @@ -181,7 +181,7 @@ async def licence_details(


@router.get("/keywords", response_model=models.Keywords)
async def list_keywords(
def list_keywords(
session=fastapi.Depends(dependencies.get_session),
) -> models.Keywords:
"""Endpoint to get all available keywords."""
Expand Down

0 comments on commit 0083d1b

Please sign in to comment.