[NEWIMPORT] Finish up Hand import
Decided to leave streetXRaisesN alone for the moment
This commit is contained in:
parent
e7a7229dc0
commit
1d0177f6d4
|
@ -1391,6 +1391,7 @@ class Database:
|
||||||
importtime,
|
importtime,
|
||||||
seats,
|
seats,
|
||||||
maxseats,
|
maxseats,
|
||||||
|
texture,
|
||||||
playersVpi,
|
playersVpi,
|
||||||
boardcard1,
|
boardcard1,
|
||||||
boardcard2,
|
boardcard2,
|
||||||
|
@ -1402,6 +1403,11 @@ class Database:
|
||||||
playersAtStreet3,
|
playersAtStreet3,
|
||||||
playersAtStreet4,
|
playersAtStreet4,
|
||||||
playersAtShowdown,
|
playersAtShowdown,
|
||||||
|
street0Raises,
|
||||||
|
street1Raises,
|
||||||
|
street2Raises,
|
||||||
|
street3Raises,
|
||||||
|
street4Raises,
|
||||||
street1Pot,
|
street1Pot,
|
||||||
street2Pot,
|
street2Pot,
|
||||||
street3Pot,
|
street3Pot,
|
||||||
|
@ -1411,13 +1417,7 @@ class Database:
|
||||||
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, %s,
|
||||||
%s, %s, %s)"""
|
%s, %s, %s, %s, %s, %s, %s, %s, %s)"""
|
||||||
#--- texture,
|
|
||||||
#-- street0Raises,
|
|
||||||
#-- street1Raises,
|
|
||||||
#-- street2Raises,
|
|
||||||
#-- street3Raises,
|
|
||||||
#-- street4Raises,
|
|
||||||
|
|
||||||
q = q.replace('%s', self.sql.query['placeholder'])
|
q = q.replace('%s', self.sql.query['placeholder'])
|
||||||
print "DEBUG: p: %s" %p
|
print "DEBUG: p: %s" %p
|
||||||
|
@ -1430,6 +1430,7 @@ class Database:
|
||||||
datetime.today(), #importtime
|
datetime.today(), #importtime
|
||||||
p['seats'],
|
p['seats'],
|
||||||
p['maxSeats'],
|
p['maxSeats'],
|
||||||
|
p['texture'],
|
||||||
p['playersVpi'],
|
p['playersVpi'],
|
||||||
p['boardcard1'],
|
p['boardcard1'],
|
||||||
p['boardcard2'],
|
p['boardcard2'],
|
||||||
|
@ -1441,11 +1442,11 @@ class Database:
|
||||||
p['playersAtStreet3'],
|
p['playersAtStreet3'],
|
||||||
p['playersAtStreet4'],
|
p['playersAtStreet4'],
|
||||||
p['playersAtShowdown'],
|
p['playersAtShowdown'],
|
||||||
# hudCache['street0Raises'],
|
p['street0Raises'],
|
||||||
# hudCache['street1Raises'],
|
p['street1Raises'],
|
||||||
# hudCache['street2Raises'],
|
p['street2Raises'],
|
||||||
# hudCache['street3Raises'],
|
p['street3Raises'],
|
||||||
# hudCache['street4Raises'],
|
p['street4Raises'],
|
||||||
p['street1Pot'],
|
p['street1Pot'],
|
||||||
p['street2Pot'],
|
p['street2Pot'],
|
||||||
p['street3Pot'],
|
p['street3Pot'],
|
||||||
|
|
|
@ -47,6 +47,7 @@ class DerivedStats():
|
||||||
self.hands['importTime'] = None
|
self.hands['importTime'] = None
|
||||||
self.hands['seats'] = self.countPlayers(hand)
|
self.hands['seats'] = self.countPlayers(hand)
|
||||||
self.hands['maxSeats'] = hand.maxseats
|
self.hands['maxSeats'] = hand.maxseats
|
||||||
|
self.hands['texture'] = None # No calculation done for this yet.
|
||||||
|
|
||||||
# This (i think...) is correct for both stud and flop games, as hand.board['street'] disappears, and
|
# This (i think...) is correct for both stud and flop games, as hand.board['street'] disappears, and
|
||||||
# those values remain default in stud.
|
# those values remain default in stud.
|
||||||
|
@ -66,27 +67,11 @@ class DerivedStats():
|
||||||
self.hands['street4Pot'],
|
self.hands['street4Pot'],
|
||||||
self.hands['showdownPot']) = hand.getStreetTotals()
|
self.hands['showdownPot']) = hand.getStreetTotals()
|
||||||
|
|
||||||
|
|
||||||
self.vpip(hand) # Gives playersVpi (num of players vpip)
|
self.vpip(hand) # Gives playersVpi (num of players vpip)
|
||||||
self.playersAtStreetX(hand) # Gives playersAtStreet1..4 and Showdown
|
self.playersAtStreetX(hand) # Gives playersAtStreet1..4 and Showdown
|
||||||
|
|
||||||
# texture smallint,
|
# comment TEXT,
|
||||||
|
# commentTs DATETIME
|
||||||
# street0Raises TINYINT NOT NULL, /* num small bets paid to see flop/street4, including blind */
|
|
||||||
# Needs to be recorded
|
|
||||||
# street1Raises TINYINT NOT NULL, /* num small bets paid to see turn/street5 */
|
|
||||||
# Needs to be recorded
|
|
||||||
# street2Raises TINYINT NOT NULL, /* num big bets paid to see river/street6 */
|
|
||||||
# Needs to be recorded
|
|
||||||
# street3Raises TINYINT NOT NULL, /* num big bets paid to see sd/street7 */
|
|
||||||
# Needs to be recorded
|
|
||||||
# street4Raises TINYINT NOT NULL, /* num big bets paid to see showdown */
|
|
||||||
# Needs to be recorded
|
|
||||||
|
|
||||||
# comment TEXT,
|
|
||||||
# commentTs DATETIME
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def assembleHandsPlayers(self, hand):
|
def assembleHandsPlayers(self, hand):
|
||||||
self.vpip(self.hand)
|
self.vpip(self.hand)
|
||||||
|
@ -145,7 +130,12 @@ class DerivedStats():
|
||||||
# [ (player, action, ....), (player2, action, ...) ]
|
# [ (player, action, ....), (player2, action, ...) ]
|
||||||
# No idea what this value is actually supposed to be
|
# No idea what this value is actually supposed to be
|
||||||
# In theory its "num small bets paid to see flop/street4, including blind" which makes sense for limit. Not so useful for nl
|
# In theory its "num small bets paid to see flop/street4, including blind" which makes sense for limit. Not so useful for nl
|
||||||
pass
|
# Leaving empty for the moment,
|
||||||
|
self.hands['street0Raises'] = 0 # /* num small bets paid to see flop/street4, including blind */
|
||||||
|
self.hands['street1Raises'] = 0 # /* num small bets paid to see turn/street5 */
|
||||||
|
self.hands['street2Raises'] = 0 # /* num big bets paid to see river/street6 */
|
||||||
|
self.hands['street3Raises'] = 0 # /* num big bets paid to see sd/street7 */
|
||||||
|
self.hands['street4Raises'] = 0 # /* num big bets paid to see showdown */
|
||||||
|
|
||||||
def aggr(self, hand, i):
|
def aggr(self, hand, i):
|
||||||
aggrers = set()
|
aggrers = set()
|
||||||
|
|
0
pyfpdb/fpdb.py
Normal file → Executable file
0
pyfpdb/fpdb.py
Normal file → Executable file
Loading…
Reference in New Issue
Block a user