From cb90147303fd831378c8cc3bed0af14d4a831244 Mon Sep 17 00:00:00 2001 From: Worros Date: Thu, 9 Sep 2010 16:26:37 +0800 Subject: [PATCH 1/5] iPoker: Minor update to determineGameType --- pyfpdb/iPokerToFpdb.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyfpdb/iPokerToFpdb.py b/pyfpdb/iPokerToFpdb.py index 400de2fa..a2b2b829 100644 --- a/pyfpdb/iPokerToFpdb.py +++ b/pyfpdb/iPokerToFpdb.py @@ -71,12 +71,13 @@ class iPoker(HandHistoryConverter): sitename = "iPoker" filetype = "text" codepage = "cp1252" - siteID = 11 + siteID = 13 # Static regexes re_SplitHands = re.compile(r'\n+(?=)') - re_GameInfo = re.compile(r'', re.MULTILINE) + re_GameInfo = re.compile(r'(?P[a-zA-Z0-9 ]+) \$(?P[.0-9]+)/\$(?P[.0-9]+)', re.MULTILINE) +# \$(?P[.0-9]+)\/\$(?P[.0-9]+)<\/gametype>', re.MULTILINE) re_HandInfo = re.compile(r'[0-9]+)">') re_PlayerInfo = re.compile(r'', re.MULTILINE) From ccfc55eec37f7516bd61f850e58ea7020749909c Mon Sep 17 00:00:00 2001 From: Worros Date: Thu, 9 Sep 2010 16:27:31 +0800 Subject: [PATCH 2/5] iPoker: Another minot update to determineGameType --- pyfpdb/iPokerToFpdb.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyfpdb/iPokerToFpdb.py b/pyfpdb/iPokerToFpdb.py index a2b2b829..900b28ed 100644 --- a/pyfpdb/iPokerToFpdb.py +++ b/pyfpdb/iPokerToFpdb.py @@ -147,11 +147,12 @@ or None if we fail to get the info """ limits = { 'No Limit':'nl', 'Limit':'fl' } games = { # base, category - 'Holdem' : ('hold','holdem'), - 'Holdem Tournament' : ('hold','holdem') } + '7 Card Stud L' : ('stud','studhilo'), + } if 'LIMIT' in mg: self.info['limitType'] = limits[mg['LIMIT']] + self.info['limitType'] = 'fl' if 'GAME' in mg: (self.info['base'], self.info['category']) = games[mg['GAME']] if 'SB' in mg: From ef99f7026f62f8de89a78907322efbd783c070c7 Mon Sep 17 00:00:00 2001 From: Worros Date: Thu, 9 Sep 2010 16:28:18 +0800 Subject: [PATCH 3/5] Regression: Add new FTP test file --- ...0.10-201006.Player.sitting.out.but.acting.txt | Bin 0 -> 2858 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 pyfpdb/regression-test-files/cash/FTP/Flop/NLHE-USD-0.05-0.10-201006.Player.sitting.out.but.acting.txt diff --git a/pyfpdb/regression-test-files/cash/FTP/Flop/NLHE-USD-0.05-0.10-201006.Player.sitting.out.but.acting.txt b/pyfpdb/regression-test-files/cash/FTP/Flop/NLHE-USD-0.05-0.10-201006.Player.sitting.out.but.acting.txt new file mode 100644 index 0000000000000000000000000000000000000000..03ff80f2fd7898c5fe6903f67595717010c75d8a GIT binary patch literal 2858 zcmbtW*>2N76ur+#{DY+;brG~Uiyik3Xv5k?X^Mmp56)7k+9Xxtf{^%j;G9|NWoC#J zWQ{ZN_}ul}d;RBkU+(1=S0qEZ#&3b$xh&*Hrn1ETwd69xK9VhI$#ZjM54%_n6*iX< z(0uO%h_QUbF2-AtJi~f|-9A=V4$QthJB7ALK0x~ni~8T-$*oLe8}epGLM$CLBP5qg`6nF^D!0EkvtnRo6ju4I+kyeRz{Nn8d+k21DOdkMF62 zNDP9Ww2+CWT|Ebp8U(Fk-kXTbLG%ow14O3$c#0?2vci3(m{H(9m#_H00BZ}Cv1at{ zaJIr3Q3Y5?My|l398o6A$x=$0C@ELCm)s<0s`40HpS%$y(29^Oa*?uzM*m1zTfnk8 zP}(EfK+7ycx1_Bwd%}w~aE6*V#_pB8kbxY5&5=6WQ|}!qq^?&=uJee@`;4fw3KLZ0 z7bjNaz!FiRHB%EUO3~418xN|{AP26XiIur>FqQB{~foRDM#ffJ-3c;sUBsGJCmx>C>Ut(G zQES$Zsmh#|!#+}W0Lo%bFfRA_onyx?;Z|4AVL!7u11g;BAFAt+`?f2wvvAsR3UNC2 z(Dihew2{344^D8g{y*VO{akkzV%gJlhoT%UB}3Im@(XK#b53!4!r4gdOX$tv-$Zp_ zm&-a+Q6)?3=I8{zO%Shb<&TZ+&O;U$$7cWc&(}>Ph30Ox>+T{7o5&7LX#Yf^7R$Vn zXM93dm6`7&ZwpKoW}}R4Xtul4=Ku8gzX$4e>q%vqIzWEE!-HkRV*hu-CUN$EKWrk& d|6MUgygC2bjSJja*Y&#Nw}!1?o-;Sq^%p!Rpb-E7 literal 0 HcmV?d00001 From 6f0c94a1197a3f0be3b5d8a010c9ab9d2056a47b Mon Sep 17 00:00:00 2001 From: Worros Date: Thu, 9 Sep 2010 16:36:37 +0800 Subject: [PATCH 4/5] Revert "FTP: Fix re_PlayerInfo to find ', is sitting out' for cash games" This reverts commit bc4a53d754c998ca03ed47c36b5e2708410c6f83. --- pyfpdb/FulltiltToFpdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfpdb/FulltiltToFpdb.py b/pyfpdb/FulltiltToFpdb.py index 2c823dd1..f94903c5 100755 --- a/pyfpdb/FulltiltToFpdb.py +++ b/pyfpdb/FulltiltToFpdb.py @@ -84,7 +84,7 @@ class Fulltilt(HandHistoryConverter): (\s\((?PTurbo)\))?)|(?P.+)) ''' % substitutions, re.VERBOSE) re_Button = re.compile('^The button is in seat #(?P