hggh
This commit is contained in:
parent
b2c09f68de
commit
cc8eb50908
3 changed files with 5 additions and 2 deletions
|
@ -25,6 +25,7 @@ beams_client = PushNotifications(
|
|||
@app.post("/pay_rent")
|
||||
@auth_required
|
||||
def pay_rent(v):
|
||||
if v.coins < 500: return "You must have more than 500 coins."
|
||||
v.coins -= 500
|
||||
v.rent_utc = int(time.time())
|
||||
g.db.add(v)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue