Merge branch 'master' of git://git.assembla.com/fpdboz
Conflicts: pyfpdb/PartyPokerToFpdb.py
This commit is contained in:
commit
7eeace5862
|
@ -1651,7 +1651,8 @@ class Database:
|
||||||
pdata[p]['street2CheckCallRaiseDone'],
|
pdata[p]['street2CheckCallRaiseDone'],
|
||||||
pdata[p]['street3CheckCallRaiseChance'],
|
pdata[p]['street3CheckCallRaiseChance'],
|
||||||
pdata[p]['street3CheckCallRaiseDone'],
|
pdata[p]['street3CheckCallRaiseDone'],
|
||||||
pdata[p]['street4CheckCallRaiseChance']
|
pdata[p]['street4CheckCallRaiseChance'],
|
||||||
|
pdata[p]['street4CheckCallRaiseDone']
|
||||||
) )
|
) )
|
||||||
|
|
||||||
q = self.sql.query['store_hands_players']
|
q = self.sql.query['store_hands_players']
|
||||||
|
|
|
@ -168,8 +168,10 @@ class DerivedStats():
|
||||||
for player in hand.players:
|
for player in hand.players:
|
||||||
hcs = hand.join_holecards(player[1], asList=True)
|
hcs = hand.join_holecards(player[1], asList=True)
|
||||||
hcs = hcs + [u'0x', u'0x', u'0x', u'0x', u'0x']
|
hcs = hcs + [u'0x', u'0x', u'0x', u'0x', u'0x']
|
||||||
for i, card in enumerate(hcs[:7], 1):
|
#for i, card in enumerate(hcs[:7], 1): #Python 2.6 syntax
|
||||||
self.handsplayers[player[1]]['card%s' % i] = Card.encodeCard(card)
|
# self.handsplayers[player[1]]['card%s' % i] = Card.encodeCard(card)
|
||||||
|
for i, card in enumerate(hcs[:7]):
|
||||||
|
self.handsplayers[player[1]]['card%s' % (i+1)] = Card.encodeCard(card)
|
||||||
|
|
||||||
|
|
||||||
# position,
|
# position,
|
||||||
|
@ -266,13 +268,17 @@ class DerivedStats():
|
||||||
# Then no bets before the player with initiatives first action on current street
|
# Then no bets before the player with initiatives first action on current street
|
||||||
# ie. if player on street-1 had initiative
|
# ie. if player on street-1 had initiative
|
||||||
# and no donkbets occurred
|
# and no donkbets occurred
|
||||||
for i, street in enumerate(hand.actionStreets[2:], start=1):
|
|
||||||
name = self.lastBetOrRaiser(hand.actionStreets[i])
|
# XXX: enumerate(list, start=x) is python 2.6 syntax; 'start'
|
||||||
|
# came there
|
||||||
|
#for i, street in enumerate(hand.actionStreets[2:], start=1):
|
||||||
|
for i, street in enumerate(hand.actionStreets[2:]):
|
||||||
|
name = self.lastBetOrRaiser(hand.actionStreets[i+1])
|
||||||
if name:
|
if name:
|
||||||
chance = self.noBetsBefore(hand.actionStreets[i+1], name)
|
chance = self.noBetsBefore(hand.actionStreets[i+2], name)
|
||||||
self.handsplayers[name]['street%dCBChance' %i] = True
|
self.handsplayers[name]['street%dCBChance' % (i+1)] = True
|
||||||
if chance == True:
|
if chance == True:
|
||||||
self.handsplayers[name]['street%dCBDone' %i] = self.betStreet(hand.actionStreets[i+1], name)
|
self.handsplayers[name]['street%dCBDone' % (i+1)] = self.betStreet(hand.actionStreets[i+2], name)
|
||||||
|
|
||||||
def seen(self, hand, i):
|
def seen(self, hand, i):
|
||||||
pas = set()
|
pas = set()
|
||||||
|
|
|
@ -85,6 +85,7 @@ class PartyPoker(HandHistoryConverter):
|
||||||
(?P<TABLE_ID_WRAPPER>\(|\#| ) # \# means sng, ( - mtt, nothing - cash game
|
(?P<TABLE_ID_WRAPPER>\(|\#| ) # \# means sng, ( - mtt, nothing - cash game
|
||||||
(?P<TABLE_ID>\d+) \)? \s+ # it's global unique id for this table
|
(?P<TABLE_ID>\d+) \)? \s+ # it's global unique id for this table
|
||||||
(?:Table\s+\#(?P<TABLE_NUM>\d+).+)? # table num for mtt tournaments
|
(?:Table\s+\#(?P<TABLE_NUM>\d+).+)? # table num for mtt tournaments
|
||||||
|
(\(No\sDP\)\s)?
|
||||||
\((?P<PLAY>Real|Play)\s+Money\)\s*
|
\((?P<PLAY>Real|Play)\s+Money\)\s*
|
||||||
""",
|
""",
|
||||||
re.VERBOSE|re.MULTILINE)
|
re.VERBOSE|re.MULTILINE)
|
||||||
|
|
|
@ -3404,10 +3404,11 @@ class Sql:
|
||||||
street2CheckCallRaiseDone,
|
street2CheckCallRaiseDone,
|
||||||
street3CheckCallRaiseChance,
|
street3CheckCallRaiseChance,
|
||||||
street3CheckCallRaiseDone,
|
street3CheckCallRaiseDone,
|
||||||
street4CheckCallRaiseChance
|
street4CheckCallRaiseChance,
|
||||||
|
street4CheckCallRaiseDone
|
||||||
)
|
)
|
||||||
VALUES (
|
VALUES (
|
||||||
%s, %s, %s, %s,
|
%s, %s, %s, %s, %s,
|
||||||
%s, %s, %s, %s, %s,
|
%s, %s, %s, %s, %s,
|
||||||
%s, %s, %s, %s, %s,
|
%s, %s, %s, %s, %s,
|
||||||
%s, %s, %s, %s, %s,
|
%s, %s, %s, %s, %s,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user