diff --git a/pyfpdb/WinamaxToFpdb.py b/pyfpdb/WinamaxToFpdb.py index c6b49c4c..8fdab097 100644 --- a/pyfpdb/WinamaxToFpdb.py +++ b/pyfpdb/WinamaxToFpdb.py @@ -89,7 +89,7 @@ class Winamax(HandHistoryConverter): buyIn:\s(?P(?P[%(LS)s\d\,]+)?\s\+?\s(?P[%(LS)s\d\,]+)?\+?(?P[%(LS)s\d\.]+)?\s?(?P%(LEGAL_ISO)s)?|Gratuit|Ticket\suniquement)?\s (level:\s(?P\d+))? .*)? - \s-\sHandId:\s\#(?P\d+)-(?P\d+)-(?P\d+).*\s + \s-\sHandId:\s\#(?P\d+)-(?P\d+)-(?P\d+).*\s # REB says: HID3 is the correct hand number (?PHoldem|Omaha)\s (?Pno\slimit|pot\slimit)\s \( @@ -219,15 +219,19 @@ class Winamax(HandHistoryConverter): # TODO: Manually adjust time against OFFSET hand.startTime = datetime.datetime.strptime(datetimestr, "%Y/%m/%d %H:%M:%S") # also timezone at end, e.g. " ET" hand.startTime = HandHistoryConverter.changeTimezone(hand.startTime, "CET", "UTC") - if key == 'HID1': - # Need to remove non-alphanumerics for MySQL - hand.handid = "1%.9d%s%s"%(int(info['HID2']),info['HID1'],info['HID3']) - if len (hand.handid) > 19: - hand.handid = "%s" % info['HID1'] +# if key == 'HID1': +# # Need to remove non-alphanumerics for MySQL +# hand.handid = "1%.9d%s%s"%(int(info['HID2']),info['HID1'],info['HID3']) +# if len (hand.handid) > 19: +# hand.handid = "%s" % info['HID1'] + if key == 'HID3': + hand.handid = int(info['HID3']) # correct hand no (REB) if key == 'TOURNO': hand.tourNo = info[key] if key == 'TABLE': hand.tablename = info[key] + if key == 'MAXPLAYER' and info[key] != None: + hand.maxseats = int(info[key]) if key == 'BUYIN': if hand.tourNo!=None: @@ -280,7 +284,7 @@ class Winamax(HandHistoryConverter): # TODO: These hand.buttonpos = 1 - hand.maxseats = 10 # Set to None - Hand.py will guessMaxSeats() +# hand.maxseats = 10 # Set to None - Hand.py will guessMaxSeats() hand.mixed = None def readPlayerStacks(self, hand):