Skip to content

Commit

Permalink
fixed game getter in send hint
Browse files Browse the repository at this point in the history
  • Loading branch information
bomzheg committed Mar 5, 2025
1 parent 9f9e932 commit 3703a98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shvatka/infrastructure/scheduler/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ async def send_hint_wrapper(
team_id: int,
hint_number: int,
lt_id: int,
game: FromDishka[dto.Game],
dao: FromDishka[HolderDao],
game_view: FromDishka[GameView],
scheduler: FromDishka[Scheduler],
Expand All @@ -68,6 +67,8 @@ async def send_hint_wrapper(
try:
level = await dao.level.get_by_id(level_id)
team = await dao.team.get_by_id(team_id)
game = await dao.game.get_active_game()
assert game is not None

await send_hint(
level=level,
Expand Down

0 comments on commit 3703a98

Please sign in to comment.