master
Aevann1 2021-09-08 13:06:56 +02:00
parent 520b6d3531
commit 6c1f23af04
1 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ def shop(v):
def buy(v, award):
if award not in AWARDS: abort(400)
price = AWARDS[award]["price"]
if v.coins < price: return {"error": "Not enough coins!"}, 400
if v.coins < price: return {"error": "Not enough coins."}, 400
v.coins -= price
g.db.add(v)
@ -138,7 +138,7 @@ def get_awards(v):
def award_post(pid, v):
if v.is_suspended and v.unban_utc == 0:
return {"error": "forbidden"}, 403
return {"error": "forbidden."}, 403
kind = request.form.get("kind", "")