Replace None by "" for teams and twitter names
parent
9427672d2f
commit
6370484c4e
|
@ -95,11 +95,11 @@ class Player():
|
||||||
chars = None
|
chars = None
|
||||||
):
|
):
|
||||||
self.id = int(id) # actually intended to store an Entrant id
|
self.id = int(id) # actually intended to store an Entrant id
|
||||||
self.prefix = prefix
|
self.prefix = ( "" if prefix is None else prefix )
|
||||||
self.gamerTag = gamerTag
|
self.gamerTag = gamerTag
|
||||||
self.placement = int(placement)
|
self.placement = int(placement)
|
||||||
self.seeding = int(seeding)
|
self.seeding = int(seeding)
|
||||||
self.twitterHandle = twitterHandle
|
self.twitterHandle = ( "" if twitterHandle is None else twitterHandle )
|
||||||
|
|
||||||
if chars is None:
|
if chars is None:
|
||||||
self.chars = {}
|
self.chars = {}
|
||||||
|
|
Loading…
Reference in New Issue