forked from rDrama/rDrama
fdsfsd
parent
aa9b9dfcb6
commit
b20e26aa18
|
@ -128,7 +128,7 @@ def transfer_coins(v, username):
|
||||||
if v.coins < amount: return {"error": f"You don't have enough {app.config['COINS_NAME']}"}, 400
|
if v.coins < amount: return {"error": f"You don't have enough {app.config['COINS_NAME']}"}, 400
|
||||||
if amount < 100: return {"error": f"You have to gift at least 100 {app.config['COINS_NAME']}."}, 400
|
if amount < 100: return {"error": f"You have to gift at least 100 {app.config['COINS_NAME']}."}, 400
|
||||||
|
|
||||||
tax = math.ceil(amount*0.01)
|
tax = math.ceil(amount*0.015)
|
||||||
tax_receiver = g.db.query(User).filter_by(id=TAX_RECEIVER_ID).first()
|
tax_receiver = g.db.query(User).filter_by(id=TAX_RECEIVER_ID).first()
|
||||||
tax_receiver.coins += tax
|
tax_receiver.coins += tax
|
||||||
log_message = f"[@{v.username}]({v.url}) has transferred {amount} {app.config['COINS_NAME']} to [@{receiver.username}]({receiver.url})"
|
log_message = f"[@{v.username}]({v.url}) has transferred {amount} {app.config['COINS_NAME']} to [@{receiver.username}]({receiver.url})"
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script src="/assets/js/userpage.js?v=57"></script>
|
<script src="/assets/js/userpage.js?v=58"></script>
|
||||||
<title>{{u.username}}'s profile - {{'SITE_NAME' | app_config}}</title>
|
<title>{{u.username}}'s profile - {{'SITE_NAME' | app_config}}</title>
|
||||||
{% if u.is_private %}
|
{% if u.is_private %}
|
||||||
<meta name="robots" content="noindex">
|
<meta name="robots" content="noindex">
|
||||||
|
|
Loading…
Reference in New Issue