Skip to content

Commit

Permalink
fixed usage get_keys
Browse files Browse the repository at this point in the history
added get print bonuses
  • Loading branch information
bomzheg committed Dec 4, 2024
1 parent 658fc2d commit a987555
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion shvatka/tgbot/views/results/scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,12 @@ async def publish(self):
if hint.time == 0:
text = (
f"🔒 <b>Уровень № {self.level.number_in_game + 1}</b>\n"
f"Ключи уровня:\n🔑 " + "\n🔑 ".join(self.level.scenario.keys)
f"Ключи уровня:\n🔑 " + "\n🔑 ".join(self.level.scenario.get_keys())
)
if self.level.scenario.get_bonus_keys():
text += f"\nБонусные ключи:\n💰 " + "\n💰 ".join(
[f"{b.text} ({b.bonus_minutes} мин.)" for b in self.level.scenario.get_bonus_keys()]
)
elif hint_number == len(self.level.scenario.time_hints) - 1:
text = (
f"🔖 Последняя подсказка уровня №{self.level.number_in_game + 1} "
Expand Down

0 comments on commit a987555

Please sign in to comment.