Skip to content

Commit

Permalink
added add hint parts
Browse files Browse the repository at this point in the history
  • Loading branch information
bomzheg committed Oct 6, 2024
1 parent 5fb39d6 commit 831282e
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions shvatka/tgbot/dialogs/time_hint/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,7 @@
width=2,
height=10,
),
SwitchTo(
Const("Добавить"),
state=states.TimeHintEditSG.add_part,
id="to_add_part"
),
SwitchTo(Const("Добавить"), state=states.TimeHintEditSG.add_part, id="to_add_part"),
Button(
text=Const("Сохранить изменения"),
id="save_time_hint",
Expand All @@ -130,10 +126,7 @@
Case(
{
False: Const("Присылай сообщения с подсказками (текст, фото, видео итд)"),
True: Jinja(
"{{hints | hints}}\n"
"Можно прислать ещё сообщения или вернуться"
),
True: Jinja("{{hints | hints}}\n" "Можно прислать ещё сообщения или вернуться"),
},
selector="has_hints",
),
Expand Down

0 comments on commit 831282e

Please sign in to comment.