setting holecards for a player is now idempotent
This commit is contained in:
parent
7500bcdf92
commit
b34c0e1300
|
@ -332,8 +332,7 @@ Note, will automatically uppercase the rank letter.
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
self.checkPlayerExists(player)
|
self.checkPlayerExists(player)
|
||||||
for c in cards:
|
self.holecards[player] = set([self.card(c) for c in cards])
|
||||||
self.holecards[player].append(self.card(c))
|
|
||||||
except FpdbParseError, e:
|
except FpdbParseError, e:
|
||||||
print "Tried to add holecards for unknown player: %s" % (player,)
|
print "Tried to add holecards for unknown player: %s" % (player,)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user