From b34c0e1300f9bff2a35cd6f122325653b59702fa Mon Sep 17 00:00:00 2001 From: Matt Turnbull Date: Thu, 11 Dec 2008 17:35:44 +0000 Subject: [PATCH] setting holecards for a player is now idempotent --- pyfpdb/HandHistoryConverter.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyfpdb/HandHistoryConverter.py b/pyfpdb/HandHistoryConverter.py index 65cf68d3..77d76eb3 100644 --- a/pyfpdb/HandHistoryConverter.py +++ b/pyfpdb/HandHistoryConverter.py @@ -332,8 +332,7 @@ Note, will automatically uppercase the rank letter. """ try: self.checkPlayerExists(player) - for c in cards: - self.holecards[player].append(self.card(c)) + self.holecards[player] = set([self.card(c) for c in cards]) except FpdbParseError, e: print "Tried to add holecards for unknown player: %s" % (player,)