mirror of
https://gitea.tendokyu.moe/Dniel97/artemis.git
synced 2026-09-22 22:28:25 +03:00
idac: fix wrong team league ranking
This commit is contained in:
@@ -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()
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user