Fix Player __init__
Players were all sharing the same chars attribute. Use int instead of strings for placement and seeds.master
parent
19a1c293c3
commit
a21e8f80b6
|
@ -90,16 +90,19 @@ class Player():
|
||||||
placement,
|
placement,
|
||||||
seeding,
|
seeding,
|
||||||
twitterHandle = None,
|
twitterHandle = None,
|
||||||
chars = {}
|
chars = None
|
||||||
)
|
):
|
||||||
self.id = id
|
self.id = int(id) # actually intended to store an Entrant id
|
||||||
self.prefix = prefix
|
self.prefix = prefix
|
||||||
self.gamerTag = gamerTag
|
self.gamerTag = gamerTag
|
||||||
self.placement = placement
|
self.placement = int(placement)
|
||||||
self.seeding = seeding
|
self.seeding = int(seeding)
|
||||||
self.twitterHandle = twitterHandle
|
self.twitterHandle = twitterHandle
|
||||||
|
|
||||||
self.chars = chars
|
if chars is None:
|
||||||
|
self.chars = {}
|
||||||
|
else:
|
||||||
|
self.chars = chars
|
||||||
|
|
||||||
# -------------------------------------------------------------------------
|
# -------------------------------------------------------------------------
|
||||||
def add_character_selection(self, character, win):
|
def add_character_selection(self, character, win):
|
||||||
|
|
Loading…
Reference in New Issue