Add get_away_team and get_home_team methods to StratGame dataclass
#21
Labels
No Label
ai-changes-requested
ai-failed
ai-pr-opened
ai-reviewed
ai-reviewing
ai-working
ai-working
bug
enhancement
feature
in-queue
performance
security
tech-debt
todo
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-discord#21
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
db_calls_gameplay.py:190has# 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.Implemented in PR #67: #67
Added
get_away_team()andget_home_team()async methods toStratGame. Both delegate to the existingget_game_team()function which already handles the SBA vs PD distinction — so callers no longer need to repeat the team-lookup logic inline.Fixed in PR #106. Added
get_away_team()andget_home_team()async methods to theStratGamedataclass indb_calls_gameplay.py. Each delegates toget_game_team(self, team_id=self.away_team_id/home_team_id). Also removed the stale TODO comment from theGamemodel.