Skip to content

Commit

Permalink
Правки
Browse files Browse the repository at this point in the history
  • Loading branch information
HamletSargsyan committed May 12, 2024
1 parent ab231d2 commit 387529c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bot/callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ def market_callback(call: CallbackQuery):
user.coin -= market_item.price

user_item = get_or_add_user_item(user, market_item.name)
user_item.quantity = market_item.quantity
user_item.quantity += market_item.quantity

database.items.update(**user_item.to_dict())
database.users.update(**user.to_dict())
Expand Down Expand Up @@ -765,4 +765,4 @@ def market_item_open_callback(call: CallbackQuery):
f"Продавец: {get_user_tag(item_owner)}")

markup = InlineMarkup.market_item_open(user, market_item)
bot.edit_message_text(mess, call.message.chat.id, call.message.id, reply_markup=markup)
bot.edit_message_text(mess, call.message.chat.id, call.message.id, reply_markup=markup)

0 comments on commit 387529c

Please sign in to comment.