Skip to content

Commit

Permalink
chore: fix reply message in all items
Browse files Browse the repository at this point in the history
  • Loading branch information
progmatic-99 committed Mar 31, 2024
1 parent d21e788 commit e90e5ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ async def get_all_items(update: Update, ctx: ContextTypes.DEFAULT_TYPE) -> int:

table = pt.PrettyTable(["Name", "Quantity", "Price"])
for item in all_items:
table.add_row([item.name, item.quantity, item.price])
name, quantity, price = item
table.add_row([name, quantity, price])

await update.message.reply_text(f"Following items were added by {user}:\n```{table}```", parsemode=MarkdownV2)
except sqlite3.Error as e:
Expand Down

0 comments on commit e90e5ea

Please sign in to comment.