This commit is contained in:
Aevann1 2021-09-01 17:01:04 +02:00
parent b2c09f68de
commit cc8eb50908
3 changed files with 5 additions and 2 deletions

View file

@ -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)