fix/standings-streak-sort-order #10

Merged
cal merged 1 commits from fix/standings-streak-sort-order into main 2026-02-10 21:05:42 +00:00

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()