This commit is contained in:
NikolajDanger
2020-08-06 14:04:44 +02:00
parent 8126920e5d
commit c18fe65607
3 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ def addMoney(user,amount):
logThis("adding "+str(amount)+" to "+user+"'s account")
with open("resources/users.json", "r") as f:
data = json.load(f)
if user in data:
points = data[user]["money"]
data[user]["money"] = points + amount