chore: clean up texts

This commit is contained in:
2026-08-13 11:30:04 +07:00
parent 104cf71969
commit 1b78f2ba36
7 changed files with 111 additions and 5 deletions

View File

@@ -53,7 +53,8 @@ async def cart_cmd(
return
await msg.answer(
f"total: {cart.total}₽",
"<b>🌸 Убедитесь в том, что все желаемые позиции есть в заказе ниже!</b>\n\n"
f"<b>Сумма:</b> <i>{cart.total}₽</i>",
reply_markup=render_cart(
cart.items[:PAGE_SIZE],
show_next=len(cart.items) > PAGE_SIZE,

View File

@@ -6,7 +6,7 @@ from aiogram.fsm.context import FSMContext
from aiogram.types import CallbackQuery, Message
from sqlalchemy.ext.asyncio import AsyncSession
from misc.kb import main_menu_kb
from misc.kb.client import main_menu_kb
from repositories.order_items import OrderItemRepository
from services.orders import OrderService

View File

@@ -64,7 +64,7 @@ async def product_card(
product = await products_repo.get_product_by_id(session, product_id, include_hidden=is_admin)
if not product:
await cb.answer("Товар недоступен.", show_alert=True)
await cb.answer("<b>❌ Товар недоступен.</b>", show_alert=True)
return
if is_admin:
@@ -108,7 +108,7 @@ async def product_card(
if not msg.photo:
logger.warning("didnt get a photo back wahhh :(")
return # TODO: Add logging
return
await products_repo.add_product_file_id(session, product_id, file_id=msg.photo[-1].file_id)
@@ -129,7 +129,7 @@ async def cart_action(
product = await products_repo.get_product_by_id(session, product_id, include_hidden=is_admin)
if not product:
await cb.answer("Товар недоступен.", show_alert=True)
await cb.answer("❌ Товар недоступен.", show_alert=True)
return
show_cart = True