Merge pull request 'fix/standings-streak-sort-order' (#10) from fix/standings-streak-sort-order into main
All checks were successful
Build Docker Image / build (push) Successful in 2m46s

Reviewed-on: #10
This commit is contained in:
cal 2026-02-10 21:05:40 +00:00
commit e7ec6c94ff

View File

@ -1326,7 +1326,8 @@ class Standings(BaseModel):
# Iterate through each individual result
# for game in Result.select_season(season).where(Result.week <= 22):
for game in StratGame.select().where(
(StratGame.season == season) & (StratGame.week <= 18) & (StratGame.game_num.is_null(False))):
(StratGame.season == season) & (StratGame.week <= 18) & (StratGame.game_num.is_null(False))
).order_by(StratGame.week, StratGame.game_num):
# tally win and loss for each standings object
game.update_standings()