fix: remove stray syntax error in teams.py db_engine import
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
7b8b7b9c01
commit
3b7bb2b6b5
@ -8,7 +8,7 @@ import logging
|
|||||||
import pydantic
|
import pydantic
|
||||||
from pandas import DataFrame
|
from pandas import DataFrame
|
||||||
|
|
||||||
from ..db_engine import (, DoesNotExist
|
from ..db_engine import (
|
||||||
db,
|
db,
|
||||||
Team,
|
Team,
|
||||||
model_to_dict,
|
model_to_dict,
|
||||||
@ -39,7 +39,6 @@ from ..dependencies import (
|
|||||||
PRIVATE_IN_SCHEMA,
|
PRIVATE_IN_SCHEMA,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
router = APIRouter(prefix="/api/v2/teams", tags=["teams"])
|
router = APIRouter(prefix="/api/v2/teams", tags=["teams"])
|
||||||
|
|
||||||
|
|
||||||
@ -168,7 +167,9 @@ async def get_teams(
|
|||||||
|
|
||||||
|
|
||||||
@router.get("/{team_id}")
|
@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:
|
try:
|
||||||
this_team = Team.get_by_id(team_id)
|
this_team = Team.get_by_id(team_id)
|
||||||
except DoesNotExist:
|
except DoesNotExist:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user