From 841226e5448b6371efa6146715bbb0d7527df35d Mon Sep 17 00:00:00 2001 From: Eratosthenes Date: Thu, 27 Jan 2011 15:09:50 -0500 Subject: [PATCH] Implement getting button position in Winamax. --- pyfpdb/WinamaxToFpdb.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyfpdb/WinamaxToFpdb.py b/pyfpdb/WinamaxToFpdb.py index 8fdab097..2baf3558 100644 --- a/pyfpdb/WinamaxToFpdb.py +++ b/pyfpdb/WinamaxToFpdb.py @@ -282,9 +282,9 @@ class Winamax(HandHistoryConverter): if key == 'LEVEL': hand.level = info[key] - # TODO: These - hand.buttonpos = 1 -# hand.maxseats = 10 # Set to None - Hand.py will guessMaxSeats() + m = self.re_Button.search(hand.handText) + hand.buttonpos = m.groupdict().get('BUTTON', None) + hand.mixed = None def readPlayerStacks(self, hand):