Added back in additions to THP and PokerStarsToFpdb now that the conflict has been resolved
This commit is contained in:
parent
ae8006935d
commit
4b938b7e2a
|
@ -37,8 +37,6 @@ class PokerStars(HandHistoryConverter):
|
||||||
filetype = "text"
|
filetype = "text"
|
||||||
codepage = ("utf8", "cp1252")
|
codepage = ("utf8", "cp1252")
|
||||||
siteId = 2 # Needs to match id entry in Sites database
|
siteId = 2 # Needs to match id entry in Sites database
|
||||||
|
|
||||||
mixes = { 'HORSE': 'horse', '8-Game': '8game', 'HOSE': 'hose', 'Mixed Hold\'em': 'mholdem'} # Legal mixed games
|
|
||||||
sym = {'USD': "\$", 'CAD': "\$", 'T$': "", "EUR": "\xe2\x82\xac", "GBP": "\xa3", "play": ""} # ADD Euro, Sterling, etc HERE
|
sym = {'USD': "\$", 'CAD': "\$", 'T$': "", "EUR": "\xe2\x82\xac", "GBP": "\xa3", "play": ""} # ADD Euro, Sterling, etc HERE
|
||||||
substitutions = {
|
substitutions = {
|
||||||
'LEGAL_ISO' : "USD|EUR|GBP|CAD|FPP", # legal ISO currency codes
|
'LEGAL_ISO' : "USD|EUR|GBP|CAD|FPP", # legal ISO currency codes
|
||||||
|
@ -80,6 +78,15 @@ class PokerStars(HandHistoryConverter):
|
||||||
'Single Draw 2-7 Lowball' : ('draw','27_1draw'),
|
'Single Draw 2-7 Lowball' : ('draw','27_1draw'),
|
||||||
'5 Card Draw' : ('draw','fivedraw')
|
'5 Card Draw' : ('draw','fivedraw')
|
||||||
}
|
}
|
||||||
|
mixes = {
|
||||||
|
'HORSE': 'horse',
|
||||||
|
'8-Game': '8game',
|
||||||
|
'HOSE': 'hose',
|
||||||
|
'Mixed PLH/PLO': 'plh_plo',
|
||||||
|
'Mixed Omaha H/L': 'plo_lo',
|
||||||
|
'Mixed Hold\'em': 'mholdem',
|
||||||
|
'Triple Stud': '3stud'
|
||||||
|
} # Legal mixed games
|
||||||
currencies = { u'€':'EUR', '$':'USD', '':'T$' }
|
currencies = { u'€':'EUR', '$':'USD', '':'T$' }
|
||||||
|
|
||||||
# Static regexes
|
# Static regexes
|
||||||
|
@ -90,7 +97,7 @@ class PokerStars(HandHistoryConverter):
|
||||||
# here's how I plan to use LS
|
# here's how I plan to use LS
|
||||||
(?P<BUYIN>(?P<BIAMT>[%(LS)s\d\.]+)?\+?(?P<BIRAKE>[%(LS)s\d\.]+)?\+?(?P<BOUNTY>[%(LS)s\d\.]+)?\s?(?P<TOUR_ISO>%(LEGAL_ISO)s)?|Freeroll)\s+)?
|
(?P<BUYIN>(?P<BIAMT>[%(LS)s\d\.]+)?\+?(?P<BIRAKE>[%(LS)s\d\.]+)?\+?(?P<BOUNTY>[%(LS)s\d\.]+)?\s?(?P<TOUR_ISO>%(LEGAL_ISO)s)?|Freeroll)\s+)?
|
||||||
# close paren of tournament info
|
# close paren of tournament info
|
||||||
(?P<MIXED>HORSE|8\-Game|HOSE|Mixed\sPLH/PLO|Mixed\sHold\'em)?\s?\(?
|
(?P<MIXED>HORSE|8\-Game|HOSE|Mixed\sOmaha\sH/L|Mixed\sHold\'em|Mixed\sPLH/PLO|Triple\sStud)?\s?\(?
|
||||||
(?P<GAME>Hold\'em|Razz|RAZZ|7\sCard\sStud|7\sCard\sStud\sHi/Lo|Omaha|Omaha\sHi/Lo|Badugi|Triple\sDraw\s2\-7\sLowball|Single\sDraw\s2\-7\sLowball|5\sCard\sDraw)\s
|
(?P<GAME>Hold\'em|Razz|RAZZ|7\sCard\sStud|7\sCard\sStud\sHi/Lo|Omaha|Omaha\sHi/Lo|Badugi|Triple\sDraw\s2\-7\sLowball|Single\sDraw\s2\-7\sLowball|5\sCard\sDraw)\s
|
||||||
(?P<LIMIT>No\sLimit|Limit|LIMIT|Pot\sLimit)\)?,?\s
|
(?P<LIMIT>No\sLimit|Limit|LIMIT|Pot\sLimit)\)?,?\s
|
||||||
(-\s)?
|
(-\s)?
|
||||||
|
|
|
@ -153,6 +153,7 @@ def compare_hands_file(filename, importer, errors):
|
||||||
del ghash['gsc']
|
del ghash['gsc']
|
||||||
del ghash['sc']
|
del ghash['sc']
|
||||||
del ghash['id']
|
del ghash['id']
|
||||||
|
del ghash['board']
|
||||||
for datum in ghash:
|
for datum in ghash:
|
||||||
#print "DEBUG: hand: '%s'" % datum
|
#print "DEBUG: hand: '%s'" % datum
|
||||||
try:
|
try:
|
||||||
|
@ -161,7 +162,12 @@ def compare_hands_file(filename, importer, errors):
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
# Stats don't match.
|
# Stats don't match.
|
||||||
if datum == "gametypeId" or datum == 'sessionId' or datum == 'tourneyId' or datum == 'gameSessionId':
|
if (datum == "gametypeId"
|
||||||
|
or datum == 'sessionId'
|
||||||
|
or datum == 'tourneyId'
|
||||||
|
or datum == 'gameSessionId'
|
||||||
|
or datum == 'fileId'
|
||||||
|
or datum == 'runIt'):
|
||||||
# Not an error. gametypeIds are dependent on the order added to the db.
|
# Not an error. gametypeIds are dependent on the order added to the db.
|
||||||
#print "DEBUG: Skipping mismatched gamtypeId"
|
#print "DEBUG: Skipping mismatched gamtypeId"
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue
Block a user