From 01711e6990060d10f49700f1c95e11a8d1aee9c9 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 30 Jan 2022 22:01:50 +0200 Subject: [PATCH] c --- files/routes/users.py | 2 +- files/templates/comments.html | 11 ++--------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/files/routes/users.py b/files/routes/users.py index 27425c7b4..fc5cfcd4e 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -666,7 +666,7 @@ def u_username(username, v=None): if username != u.username: - return redirect(SITE_FULL + request.full_path.replace(username, u.username)) + return redirect(SITE_FULL + request.full_path.replace(username, u.username)[:-1]) if u.reserved: if request.headers.get("Authorization") or request.headers.get("xhr"): return {"error": f"That username is reserved for: {u.reserved}"} diff --git a/files/templates/comments.html b/files/templates/comments.html index 3b5ebcdc5..2c90daeaf 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -264,16 +264,9 @@ {% elif blackjack_status == 'lost' %} Lost {{wager}} Coins. {% elif blackjack_status == 'won' %} - Won {{wager}} Coins. + Won {{wager|int * 2}} Coins. {% elif blackjack_status == 'blackjack' %} - Blackjack! Won {{wager|int + wager|int/1.5}} Coins. - + Blackjack! Won {{(wager|int * 5/2}} Coins. {% endif %} {% endif %}