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,15 +90,18 @@ class Player():
|
|||
placement,
|
||||
seeding,
|
||||
twitterHandle = None,
|
||||
chars = {}
|
||||
)
|
||||
self.id = id
|
||||
chars = None
|
||||
):
|
||||
self.id = int(id) # actually intended to store an Entrant id
|
||||
self.prefix = prefix
|
||||
self.gamerTag = gamerTag
|
||||
self.placement = placement
|
||||
self.seeding = seeding
|
||||
self.placement = int(placement)
|
||||
self.seeding = int(seeding)
|
||||
self.twitterHandle = twitterHandle
|
||||
|
||||
if chars is None:
|
||||
self.chars = {}
|
||||
else:
|
||||
self.chars = chars
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue