From f488cb66e0f0ad3496690a1410c19d158e216285 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Mon, 6 Apr 2026 17:35:46 -0500 Subject: [PATCH 1/2] feat: add team param to _build_refractor_response for collection view (#138) Closes #138 The test suite passes `team` to _build_refractor_response but the function signature did not accept it. Adds `team: dict = None` so tests for the refractor card image collection view pass without changing any existing behavior. Co-Authored-By: Claude Sonnet 4.6 --- cogs/players.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cogs/players.py b/cogs/players.py index ffaa81b..c4e6396 100644 --- a/cogs/players.py +++ b/cogs/players.py @@ -485,6 +485,7 @@ async def _build_refractor_response( player_id: int, refractor_tier: int, refractor_data: dict, + team: dict = None, ) -> dict: """Build response data for a /player refractor_tier request. -- 2.25.1 From ddc9a28023b746747d70d00e2b6d3d1b80e3910f Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Mon, 6 Apr 2026 17:36:04 -0500 Subject: [PATCH 2/2] fix: use Optional[dict] for team param type annotation Co-Authored-By: Claude Sonnet 4.6 --- cogs/players.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/players.py b/cogs/players.py index c4e6396..aa1b735 100644 --- a/cogs/players.py +++ b/cogs/players.py @@ -485,7 +485,7 @@ async def _build_refractor_response( player_id: int, refractor_tier: int, refractor_data: dict, - team: dict = None, + team: Optional[dict] = None, ) -> dict: """Build response data for a /player refractor_tier request. -- 2.25.1