Skip to content

Commit

Permalink
fixed order in spy
Browse files Browse the repository at this point in the history
  • Loading branch information
bomzheg committed Mar 5, 2025
1 parent df6daf8 commit 9f9e932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shvatka/tgbot/dialogs/game_spy/getters.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async def get_spy(
):
stat = await get_game_spy(game, player, dao.game_stat)
return {
"stat": stat,
"stat": sorted(stat, key=lambda x: (x.level_number, x.start_at)),
"now": datetime.now(tz=tz_utc),
}

Expand Down

0 comments on commit 9f9e932

Please sign in to comment.