diff --git a/lokrez/smashgg.py b/lokrez/smashgg.py index f3fd1bc..ab8ced4 100644 --- a/lokrez/smashgg.py +++ b/lokrez/smashgg.py @@ -90,16 +90,19 @@ 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 - self.chars = chars + if chars is None: + self.chars = {} + else: + self.chars = chars # ------------------------------------------------------------------------- def add_character_selection(self, character, win):