Skip to content

Commit

Permalink
Be explicit about which models we are returning
Browse files Browse the repository at this point in the history
  • Loading branch information
Iain-S committed Jul 3, 2024
1 parent a4dd055 commit c60ebea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rctab/routers/accounting/usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import calendar
import datetime
import logging
from typing import Any, Dict, List
from typing import Dict, List
from uuid import UUID

import jwt
Expand Down Expand Up @@ -239,7 +239,7 @@ async def post_usage(


@router.get("/all-usage", response_model=List[Usage])
async def get_usage(_: UserRBAC = Depends(token_admin_verified)) -> Any:
async def get_usage(_: UserRBAC = Depends(token_admin_verified)) -> List[Usage]:
"""Get all usage data."""
usage_query = select([accounting_models.usage])
rows = [dict(x) for x in await database.fetch_all(usage_query)]
Expand Down

0 comments on commit c60ebea

Please sign in to comment.