Skip to content

Commit

Permalink
Merge pull request #209 from MikiEremiki/develop
Browse files Browse the repository at this point in the history
Hotfix: Исправление ошибки типов
  • Loading branch information
MikiEremiki authored Oct 27, 2024
2 parents 3fca08f + 6836018 commit 18cdb78
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/handlers/main_hl.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ async def confirm_reserve(update: Update, context: ContextTypes.DEFAULT_TYPE):

await query.edit_message_reply_markup()

text = f'Обновлен статус билета: {ticket_status}...'
text = f'Обновлен статус билета: {ticket_status.value}...'
await message.edit_text(text)

chat_id = query.data.split('|')[1].split()[0]
Expand All @@ -252,7 +252,7 @@ async def confirm_reserve(update: Update, context: ContextTypes.DEFAULT_TYPE):

text = f'Бронь подтверждена\n'
for ticket_id in ticket_ids:
text += 'Билет ' + ticket_id + '\n'
text += 'Билет ' + str(ticket_id) + '\n'
await message.edit_text(text)

try:
Expand Down Expand Up @@ -336,7 +336,7 @@ async def reject_reserve(update: Update, context: ContextTypes.DEFAULT_TYPE):

await query.edit_message_reply_markup()

text = f'Обновлен статус билета: {ticket_status}...'
text = f'Обновлен статус билета: {ticket_status.value}...'
await message.edit_text(text)

message = await message.edit_text(
Expand All @@ -352,10 +352,9 @@ async def reject_reserve(update: Update, context: ContextTypes.DEFAULT_TYPE):

text = f'Бронь отклонена\n'
for ticket_id in ticket_ids:
text += 'Билет ' + ticket_id + '\n'
text += 'Билет ' + str(ticket_id) + '\n'
await message.edit_text(text)

# Сообщение уже было удалено самим пользователем
try:
await context.bot.delete_message(
chat_id=chat_id,
Expand Down

0 comments on commit 18cdb78

Please sign in to comment.