Skip to content

Commit

Permalink
Merge pull request #95 from ilyarolf/develop
Browse files Browse the repository at this point in the history
purchase history fix
  • Loading branch information
ilyarolf authored Feb 10, 2025
2 parents d159001 + 44bc9db commit 44e54d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ async def get_purchase_history_buttons(callback: CallbackQuery, telegram_id: int
kb_builder = InlineKeyboardBuilder()
for buy in buys:
buy_item = await BuyItemRepository.get_single_by_buy_id(buy.id)
item = await ItemRepository.get_by_id(buy_item.id)
item = await ItemRepository.get_by_id(buy_item.item_id)
subcategory = await SubcategoryRepository.get_by_id(item.subcategory_id)
kb_builder.button(text=Localizator.get_text(BotEntity.USER, "purchase_history_item").format(
subcategory_name=subcategory.name,
Expand Down

0 comments on commit 44e54d2

Please sign in to comment.