mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-31 04:46:11 +01:00
Fix dictionary get
This commit is contained in:
parent
21ffc27920
commit
637b41ec60
@ -94,7 +94,7 @@ class Players(list):
|
|||||||
class Player:
|
class Player:
|
||||||
def __init__(self, data):
|
def __init__(self, data):
|
||||||
self.id = data.get("id", "")
|
self.id = data.get("id", "")
|
||||||
self.name = data("name", "Anonymous")
|
self.name = data.get("name", "Anonymous")
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.name
|
return self.name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user