forked from rDrama/rDrama
master
parent
520b6d3531
commit
6c1f23af04
|
@ -79,7 +79,7 @@ def shop(v):
|
||||||
def buy(v, award):
|
def buy(v, award):
|
||||||
if award not in AWARDS: abort(400)
|
if award not in AWARDS: abort(400)
|
||||||
price = AWARDS[award]["price"]
|
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
|
v.coins -= price
|
||||||
g.db.add(v)
|
g.db.add(v)
|
||||||
|
|
||||||
|
@ -138,7 +138,7 @@ def get_awards(v):
|
||||||
def award_post(pid, v):
|
def award_post(pid, v):
|
||||||
|
|
||||||
if v.is_suspended and v.unban_utc == 0:
|
if v.is_suspended and v.unban_utc == 0:
|
||||||
return {"error": "forbidden"}, 403
|
return {"error": "forbidden."}, 403
|
||||||
|
|
||||||
kind = request.form.get("kind", "")
|
kind = request.form.get("kind", "")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue