Add get_away_team and get_home_team methods to StratGame dataclass #21

Closed
opened 2026-02-20 06:51:02 +00:00 by cal · 2 comments
Owner

db_calls_gameplay.py:190 has # TODO: add get_away_team and get_home_team that deals with SBa/PD and returns Team object. Callers must repeat team-lookup logic inline everywhere.

`db_calls_gameplay.py:190` has `# TODO: add get_away_team and get_home_team that deals with SBa/PD and returns Team object`. Callers must repeat team-lookup logic inline everywhere.
cal added the
tech-debt
todo
labels 2026-02-20 06:51:02 +00:00
cal added the
ai-working
label 2026-03-05 15:31:09 +00:00
cal removed the
ai-working
label 2026-03-05 15:34:33 +00:00
Author
Owner

Implemented in PR #67: #67

Added get_away_team() and get_home_team() async methods to StratGame. Both delegate to the existing get_game_team() function which already handles the SBA vs PD distinction — so callers no longer need to repeat the team-lookup logic inline.

Implemented in PR #67: https://git.manticorum.com/cal/paper-dynasty-discord/pulls/67 Added `get_away_team()` and `get_home_team()` async methods to `StratGame`. Both delegate to the existing `get_game_team()` function which already handles the SBA vs PD distinction — so callers no longer need to repeat the team-lookup logic inline.
cal added the
ai-pr-opened
label 2026-03-05 15:34:43 +00:00
Author
Owner

Fixed in PR #106. Added get_away_team() and get_home_team() async methods to the StratGame dataclass in db_calls_gameplay.py. Each delegates to get_game_team(self, team_id=self.away_team_id/home_team_id). Also removed the stale TODO comment from the Game model.

Fixed in PR #106. Added `get_away_team()` and `get_home_team()` async methods to the `StratGame` dataclass in `db_calls_gameplay.py`. Each delegates to `get_game_team(self, team_id=self.away_team_id/home_team_id)`. Also removed the stale TODO comment from the `Game` model.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cal/paper-dynasty-discord#21
No description provided.