Make naming more consistent
This commit is contained in:
parent
e9e1aad05b
commit
2bc842665d
5
model.py
5
model.py
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user