Make naming more consistent

This commit is contained in:
Dominic Zimmer 2020-07-18 00:15:37 +02:00
parent e9e1aad05b
commit 2bc842665d

View File

@ -39,9 +39,8 @@ class Model(object):
# self.users[newuser.uuid] = newuser
self.secretlookup = { self.users[uuid].get_secret() : uuid for uuid in self.users }
print(self.secretlookup)
for user in self.users.values():
print(f"{user.name.rjust(25)} -> {user.get_secret()}")
print(f"{user.name.rjust(25)} -> /dealer/{user.get_secret()}")
def to_json(self):
@ -109,7 +108,7 @@ class Model(object):
raise Exception("No such user")
@ApiMethod
async def set_maxscore(self, authtoken, newmaxscore):
async def set_max_score(self, authtoken, newmaxscore):
self.verify_admin(authtoken)
if newscore <= user.maxscore:
user.score = newscore