This commit is contained in:
Aevann1 2021-09-30 21:40:33 +02:00
parent b998be923d
commit d3f080a2a8
15 changed files with 50 additions and 54 deletions

View file

@ -106,7 +106,7 @@ def suicide(v, username):
@auth_required
def get_coins(v, username):
user = get_user(username)
if user is not None: return {"coins": user.coins}, 200
if user != None: return {"coins": user.coins}, 200
else: return {"error": "invalid_user"}, 404
@app.post("/@<username>/transfer_coins")