Private
Public Access
forked from FOSS/AutoShop-Djimbo-Simple
feat: add Lolzteam payment method and max refill limit
This commit is contained in:
@@ -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>
|
||||
┃
|
||||
┣‒ Остальные
|
||||
|
||||
Reference in New Issue
Block a user