Boom.


On Mon, Feb 3, 2014 at 3:27 PM, cdaviduik-va <notifications@github.com>wrote:

> In src/app/sc2/domain/player.py:
>
> > -    if player_id:
> > -        player.key = ndb.Key(PlayerModel._get_kind(), int(player_id))
> > -    player_key = player.put()
> > -    return player_key
> > -
> > -def player_info(player_key):
> > -    """
> > -    Returns info based on a key provided
> > -    """
> > -    if isinstance(player_key, Key):
> > -        return player_key.get()
> > -    return PlayerModel.get_by_id(player_key)
> > +    season = season or Seasons.CURRENT_SEASON
> > +    key = PlayerModel.build_key(battle_net_name)
> > +    if key.get():
> > +        raise ValueError('Player "%s" already exists. Please create a new player.' % battle_net_name)
>
> Apparently a battle tag is not unique only battletag#1234 is unique so
> I'll have to support/enforce that.
>
> https://us.battle.net/support/en/article/battlenet-battletag
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/gholtslander-va/vendladder/pull/12/files#r9400147>
> .
>



-- 
Graham Holtslander
Software Developer & ScrumMaster
gholtslander@vendasta.com
(306)-955-5512 ext.110
VendAsta Technologies Inc.
www.vendasta.com