idac: fix wrong team league ranking

This commit is contained in:
Dniel97
2026-06-09 08:39:09 +02:00
parent f0532b9eec
commit ba0f208bbc
+7 -1
View File
@@ -413,7 +413,13 @@ class IDACTeamDb(BaseData):
# Subquery: Get the league rank of the specific team
team_league_query = (
select(LeagueInfoDb.league_rank_id)
.where(LeagueInfoDb.team_id == team_id)
.where(
and_(
LeagueInfoDb.team_id == team_id,
LeagueInfoDb.round_id == round_id,
LeagueInfoDb.version == version,
)
)
.subquery()
)