refactor: remove Yoomoney payment integration

This commit is contained in:
2026-07-15 16:55:53 +05:00
parent 572dc8d1b4
commit b7cd21bfc3
14 changed files with 231 additions and 677 deletions
+1 -8
View File
@@ -119,8 +119,6 @@ async def refill_open_admin(bot: Bot, user_id: int, get_refill: ModelRefill):
if get_refill.refill_method in ["Form", "Nickname", "Number", "QIWI"]:
pay_method = "QIWI 🥝"
elif get_refill.refill_method == "Yoomoney":
pay_method = "ЮMoney 🔮"
elif get_refill.refill_method == "Cryptobot":
pay_method = "CryptoBot 🔷"
else:
@@ -353,7 +351,6 @@ async def get_statistics() -> str:
users_money_give,
) = (0, 0, 0, 0, 0, 0)
refill_cryptobot_count, refill_cryptobot_amount = 0, 0
refill_yoomoney_count, refill_yoomoney_amount = 0, 0
refill_stars_count, refill_stars_amount = 0, 0
get_categories = await Categoryx().get_all()
@@ -384,10 +381,7 @@ async def get_statistics() -> str:
refill_amount_all += refill.refill_amount
refill_count_all += 1
if refill.refill_method == "Yoomoney":
refill_yoomoney_count += 1
refill_yoomoney_amount += refill.refill_amount
elif refill.refill_method == "Cryptobot":
if refill.refill_method == "Cryptobot":
refill_cryptobot_count += 1
refill_cryptobot_amount += refill.refill_amount
elif refill.refill_method == "Stars":
@@ -490,7 +484,6 @@ async def get_statistics() -> str:
┣‒ Платежные системы (всего)
┣ CryptoBot: <code>{refill_cryptobot_count}шт</code> - <code>{round(refill_cryptobot_amount, 2)}₽</code>
┣ TG Stars: <code>{refill_stars_count}шт</code> - <code>{round(refill_stars_amount, 2)}₽</code>
┣ ЮMoney: <code>{refill_yoomoney_count}шт</code> - <code>{round(refill_yoomoney_amount, 2)}₽</code>
┣‒ Остальные
┣ Средств выдано: <code>{round(users_money_give, 2)}₽</code>