From 007cde9ba537f33b14c941ed91fb7806db5769d4 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 9 Nov 2021 19:37:51 +0200 Subject: [PATCH] fdsfsd --- files/assets/js/userpage.js | 2 +- files/routes/users.py | 2 +- files/templates/userpage.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/assets/js/userpage.js b/files/assets/js/userpage.js index ee79355c2..a7a673efe 100644 --- a/files/assets/js/userpage.js +++ b/files/assets/js/userpage.js @@ -56,7 +56,7 @@ function post_toast_callback(url, data, callback) { } -const TRANSFER_TAX = 0.01; +const TRANSFER_TAX = 0.015; function updateTax(mobile=false) { let suf = mobile ? "-mobile" : ""; diff --git a/files/routes/users.py b/files/routes/users.py index f9a5e590b..f1affc23c 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -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 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.coins += tax log_message = f"[@{v.username}]({v.url}) has transferred {amount} {app.config['COINS_NAME']} to [@{receiver.username}]({receiver.url})" diff --git a/files/templates/userpage.html b/files/templates/userpage.html index 78797642c..fbe3ad6d9 100644 --- a/files/templates/userpage.html +++ b/files/templates/userpage.html @@ -15,7 +15,7 @@ } - + {{u.username}}'s profile - {{'SITE_NAME' | app_config}} {% if u.is_private %}