Merge pull request 'fix: remove stray syntax error in teams.py db_engine import' (#62) from next-release into main
All checks were successful
Build Docker Image / build (push) Successful in 52s
All checks were successful
Build Docker Image / build (push) Successful in 52s
Reviewed-on: #62
This commit is contained in:
commit
dfe637c808
@ -8,7 +8,7 @@ import logging
|
||||
import pydantic
|
||||
from pandas import DataFrame
|
||||
|
||||
from ..db_engine import (, DoesNotExist
|
||||
from ..db_engine import (
|
||||
db,
|
||||
Team,
|
||||
model_to_dict,
|
||||
@ -39,7 +39,6 @@ from ..dependencies import (
|
||||
PRIVATE_IN_SCHEMA,
|
||||
)
|
||||
|
||||
|
||||
router = APIRouter(prefix="/api/v2/teams", tags=["teams"])
|
||||
|
||||
|
||||
@ -168,7 +167,9 @@ async def get_teams(
|
||||
|
||||
|
||||
@router.get("/{team_id}")
|
||||
async def get_one_team(team_id: int, inc_packs: bool = True, csv: Optional[bool] = False):
|
||||
async def get_one_team(
|
||||
team_id: int, inc_packs: bool = True, csv: Optional[bool] = False
|
||||
):
|
||||
try:
|
||||
this_team = Team.get_by_id(team_id)
|
||||
except DoesNotExist:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user