diff --git a/tgbot/routers/user/user_transactions.py b/tgbot/routers/user/user_transactions.py index f43b6ac..cc3bb32 100644 --- a/tgbot/routers/user/user_transactions.py +++ b/tgbot/routers/user/user_transactions.py @@ -16,6 +16,7 @@ from tgbot.utils.misc.bot_models import FSM, ARS from tgbot.utils.misc_functions import send_admins min_refill_rub = 5 # Минимальная сумма пополнения в рублях +max_refill_rub = 150000 # Максимальная сумма пополнения в рублях router = Router(name=__name__) @@ -83,7 +84,7 @@ async def refill_amount_get(message: Message, bot: Bot, state: FSM, arSession: A return await message.answer( ded(f""" ❌ Неверная сумма пополнения - ❗️ Cумма не должна быть меньше {min_refill_rub}₽ и больше 150 000₽ + ❗️ Cумма не должна быть меньше {min_refill_rub}₽ и больше {max_refill_rub}₽ 💰 Введите сумму для пополнения средств """), ) diff --git a/tgbot/utils/text_functions.py b/tgbot/utils/text_functions.py index 98932f4..d693464 100644 --- a/tgbot/utils/text_functions.py +++ b/tgbot/utils/text_functions.py @@ -350,8 +350,9 @@ async def get_statistics() -> str: users_money_have, users_money_give, ) = (0, 0, 0, 0, 0, 0) - refill_cryptobot_count, refill_cryptobot_amount = 0, 0 - refill_stars_count, refill_stars_amount = 0, 0 + + refill_cryptobot_count, refill_lolzteam_count, refill_cryptobot_amount = 0, 0, 0 + refill_stars_count, refill_lolzteam_amount, refill_stars_amount = 0, 0, 0 get_categories = await Categoryx().get_all() get_positions = await Positionx().get_all() @@ -384,6 +385,11 @@ async def get_statistics() -> str: if refill.refill_method == "Cryptobot": refill_cryptobot_count += 1 refill_cryptobot_amount += refill.refill_amount + + elif refill.refill_method == "Lolzteam": + refill_lolzteam_count += 1 + refill_lolzteam_amount += refill.refill_amount + elif refill.refill_method == "Stars": refill_stars_count += 1 refill_stars_amount += refill.refill_amount @@ -483,6 +489,7 @@ async def get_statistics() -> str: ┃ ┣‒ Платежные системы (всего) ┣ CryptoBot: {refill_cryptobot_count}шт - {round(refill_cryptobot_amount, 2)}₽ + ┣ Lolzteam: {refill_lolzteam_count}шт - {round(refill_lolzteam_amount, 2)}₽ ┣ TG Stars: {refill_stars_count}шт - {round(refill_stars_amount, 2)}₽ ┃ ┣‒ Остальные