feat: add Lolzteam payment method and max refill limit

This commit is contained in:
2026-07-18 13:33:09 +05:00
parent 79bb03e5af
commit 30a98f30c4
2 changed files with 11 additions and 3 deletions
+9 -2
View File
@@ -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: <code>{refill_cryptobot_count}шт</code> - <code>{round(refill_cryptobot_amount, 2)}₽</code>
┣ Lolzteam: <code>{refill_lolzteam_count}шт</code> - <code>{round(refill_lolzteam_amount, 2)}₽</code>
┣ TG Stars: <code>{refill_stars_count}шт</code> - <code>{round(refill_stars_amount, 2)}₽</code>
┣‒ Остальные