mirror of
https://github.com/tgbot-collection/ytdlbot.git
synced 2025-02-24 23:34:44 +08:00
fix buy me a coffee bug
This commit is contained in:
parent
d951513a3e
commit
b93ed1a323
1 changed files with 3 additions and 1 deletions
4
limit.py
4
limit.py
|
@ -241,7 +241,9 @@ class BuyMeACoffee:
|
|||
|
||||
def get_user_payment(self, email: "str") -> ("int", "float", "str"):
|
||||
order = self._get_bmac_status(email)
|
||||
amount = float(order.get("support_coffee_price", 0))
|
||||
price = float(order.get("support_coffee_price", 0))
|
||||
cups = float(order.get("support_coffees", 1))
|
||||
amount = price * cups
|
||||
level = math.floor(amount / MULTIPLY)
|
||||
return level, amount, email
|
||||
|
||||
|
|
Loading…
Reference in a new issue