c
This commit is contained in:
parent
9699fd545b
commit
654acf2e66
2 changed files with 3 additions and 10 deletions
|
@ -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}"}
|
||||
|
|
|
@ -264,16 +264,9 @@
|
|||
{% elif blackjack_status == 'lost' %}
|
||||
<strong>Lost {{wager}} Coins.</strong>
|
||||
{% elif blackjack_status == 'won' %}
|
||||
<strong>Won {{wager}} Coins.</strong>
|
||||
<strong>Won {{wager|int * 2}} Coins.</strong>
|
||||
{% elif blackjack_status == 'blackjack' %}
|
||||
<strong>Blackjack! Won <span id="blackjack-result-{{c.id}}">{{wager|int + wager|int/1.5}}</span> Coins.</strong>
|
||||
<script>
|
||||
var blackjackResult = document.getElementById('blackjack-result-{{c.id}}');
|
||||
|
||||
if (blackjackResult) {
|
||||
blackjackResult.innerText = Math.floor(parseInt(blackjackResult.innerText) * (3/2))
|
||||
}
|
||||
</script>
|
||||
<strong>Blackjack! Won <span id="blackjack-result-{{c.id}}">{{(wager|int * 5/2}}</span> Coins.</strong>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue