Skip to content

Commit

Permalink
Fix for identifying AOF hands
Browse files Browse the repository at this point in the history
  • Loading branch information
ChazDazzle committed Oct 2, 2023
1 parent a362d10 commit 1130edc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyfpdb/KingsClubToFpdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ class KingsClub(HandHistoryConverter):

re_Rake = re.compile(r"^Rake\s(?P<RAKE>[,.0-9]+)$", re.MULTILINE)
re_Split = re.compile(r"\*\*\* BOARD 1 - FLOP \*\*\*")
re_AOF = re.compile(r"Table '\w+? AOF \w+?'")
re_Table = re.compile(r"^\s?Table\s(ID\s)?\'(?P<TABLE>.+?)\'\s", re.MULTILINE|re.VERBOSE)

def compilePlayerRegexs(self, hand):
players = set([player[1] for player in hand.players])
Expand Down Expand Up @@ -271,8 +271,8 @@ def determineGameType(self, handText):
else:
info['split'] = False

m3 = self.re_AOF.search(handText)
if m3:
m3 = self.re_Table.search(handText)
if m3 and 'AOF' in m3.group('TABLE'):
info['category'] = 'aof_omaha'

if info['limitType'] == 'fl' and info['bb'] is not None:
Expand Down

0 comments on commit 1130edc

Please sign in to comment.