Commit Graph

125 Commits

Author SHA1 Message Date
Chaz Littlejohn
66e1cc3704 This commit includes a set of updates which:
* implement the new SessionsCache table
    - The SessionsCache table can be used to track overall or game sepecific sessions
    - The totalProfit field is summed by gameTypeId for cash games allowing for multiple currencies
    - Tournament profit (cashes - buy-ins) are also recorded in totalProfit and its grouped by tourneyId
* change the sequence and methodology surrounding the import of hands
    - fpdb_import.py implements a unique Hand.py method for each table
    - Hands SessionCache and HudCache records themselves are 'cached' to allow for 'bulk insert' at EOF
    - import is reorganized to allow for efficient locking in multiple connection environments
* changes the name of the index created by addTPlayersIndex (so that it is unique) to accommodate a bug in MySQL 5.5

TODO
* A 'rebuild_sessionsCache' method is still required
* Further commits are expected to fix bugs created during the porting of this code
2011-03-23 19:27:55 +00:00
Steffen Schaumburg
8a519699b5 update copyright year 2011-03-10 06:16:31 +01:00
Worros
3d7f75c933 Merge branch 'master' of git://git.assembla.com/fpdb 2011-02-28 10:00:45 +08:00
atinm
644b2d7849 replaced /usr/bin/python with /usr/bin/env python 2011-02-27 21:17:07 +08:00
Scott Wolchok
635dbc9a11 Merge remote branch 'donoban/master' into donoban-merge 2011-02-26 18:21:25 -05:00
Scott Wolchok
316f209fa0 DerivedStats: SqueezeChance is boolean, not int; fix for pgsql 2011-02-26 18:08:23 -05:00
Scott Wolchok
fc46b70c41 Rename decimal.py to decimal_wrapper.py so we don't break when
cdecimal is not installed.
2011-02-25 14:18:12 -05:00
DoNoBaN
37fcca55b9 Merge branch 'master' of git://git.assembla.com/fpdb
Conflicts:
	pyfpdb/DerivedStats.py
2011-02-25 18:14:20 +01:00
DoNoBaN
e169f32242 Added raiseToSteal stat 2011-02-25 15:37:11 +01:00
Scott Wolchok
6e3abbbb0a DerivedStats: build init dict for player stats only once. 2011-02-25 03:41:42 -05:00
Worros
e4a3de1272 Merge branch 'chaz' of git://github.com/ChazDazzle/fpdb-chaz 2011-02-17 11:28:44 +08:00
DoNoBaN
d6a034b183 DerivedStats.py with cold4bet, squeeze and success steal 2011-02-12 21:20:53 +01:00
donoban
115d187ed1 calc34BetStreet0() rewritten
More efficient with use of break and continue
2011-02-04 05:23:52 +01:00
Donoban
13758dd45a Added fold to 3bet 2011-02-02 03:35:38 +01:00
gimick
f9b39692af parser: stats > 100% tidy up DerivedStats, remove debug lines 2011-01-13 17:52:06 +08:00
gimick
e80f99e60c Parser: DerivedStats - work in progress - pushed for safe keeping 2011-01-13 17:51:51 +08:00
gimick
2ca4628a8c Parser: stats > 100% tweak to reduce TestHandsPlayers error count 2011-01-13 17:50:43 +08:00
gimick
52b40a7ee6 Parser: playersAtStreet and streetSeen mods to fix >100% stats (log66) 2011-01-13 17:50:28 +08:00
gimick
274d23e525 parser: stats > 100% tidy up DerivedStats, remove debug lines 2011-01-13 17:47:12 +08:00
chaz@pokeit.co
990e226254 storeSessionsCache() now adds a sessionId to the Hands table 2011-01-01 03:35:14 -05:00
Worros
ee0ed080ed DerivedStats: Remove erroneous comment 2010-12-11 00:34:27 +08:00
Worros
ccb116ceda DerivedStats: Fix raiseFirstInChance and raisedFirstIn for stud
The previous calculation didn't correctly deal with the 'complete' and 'bringin' actions, with bringin being markes as raisedFirstIn = True

Reduced regression test errors, but triggered some in unverified file.

---------------------
Total Errors: 22
---------------------
Likely offenders:
(  2) : regression-test-files/cash/Stars/Stud/7-StudHL-USD-0.04-0.08-200911.Cardtest.txt

(  2) : raiseFirstInChance
(  1) : street1CBChance
(  1) : street1CBDone
2010-10-13 18:15:14 +08:00
Worros
f244f8a37d DerivedStats: Merge Flop and stud position calculation
No regressions using test suite

---------------------
Total Errors: 29
---------------------
No position errors in stat listing
2010-10-13 18:05:41 +08:00
Worros
cfc2be559e DerivedStats: Remove incorrect comment from positional calc 2010-10-13 17:53:23 +08:00
Worros
a71f682803 DerivedStats: adjust street0VPI for stud
Add complete as one of the actions that count as VPIP
2010-10-13 17:47:00 +08:00
Worros
17e23c99d0 DerivedStats: Adjust wonWhenSeenStretX
Code looks trivial and correct.

Causes 13 regressions that need to be reviewed.

Total Errors: 48
(  7) : wonWhenSeenStreet2
(  4) : wonWhenSeenStreet3
(  2) : wonWhenSeenStreet4
2010-10-08 15:12:22 +08:00
Worros
9d712ba812 DerivedStats: Fix position calculation for holdem.
THP: Noted 65 additional issues with the position stat

Really need to merge the position calculation
2010-09-29 15:55:25 +08:00
Chaz
ae6a035834 * fixed a small issue in assembleHandsActions() 2010-09-28 17:23:44 -04:00
Chaz
0e9fb62b0d * added a call to the import_parameter 'saveActions' in Hand.py, saving it's value in the variable Hand.saveActions
* added logic to Hand.import() so that it only calls db.storeHandsActions if saveActions is true
* added logic to DetailedStats.getstats() so that it only calls assembleHandsActions() if saveActions is true
2010-09-28 17:17:15 -04:00
Chaz
030a15f041 * Filled assembleHandsActions() 2010-09-28 17:11:09 -04:00
Worros
26eca40b31 More HandsActions stubbing 2010-09-02 00:19:31 +08:00
Worros
9a3d60e0b3 HandsActions: Stub in the remaining calls for HandsActions 2010-09-01 10:47:13 +08:00
Worros
a03e836044 DerivedStats: Stub in HandsActions calculation 2010-09-01 10:38:54 +08:00
sqlcoder
8f91adc513 add log definition 2010-08-29 12:39:54 +01:00
steffen123
69c1c41b36 add these stats to DB/DerivedStats/SQL: street0_4BChance/Done, other3/4BStreet0 2010-08-19 04:09:24 +02:00
steffen123
8aecf117bb add otherRaisedStreet0 and foldToOtherRaisedStreet0 with defualt false 2010-08-19 04:01:44 +02:00
steffen123
d5fb0b3c36 add wonWhenSeenStreet2-4 to DerivedStats' unimplemented section, store 0.0 by default 2010-08-19 03:55:12 +02:00
Worros
ad4fcef2fd DerivedStats: re-fix (break?) sawShowdown again.
Comment from code:

hand.players includes people that are sitting out on some sites for cash games
actionStreets[1] is 'DEAL', 'THIRD', 'PREFLOP', so any player dealt cards
must act on this street if dealt cards. Almost certainly broken for the 'all-in blind' case
and right now i don't care - CG
2010-08-12 21:44:40 +08:00
Eratosthenes
8b1baa6593 Don't break stud and draw when counting players at street. 2010-08-04 20:52:37 -04:00
Eric Blade
d20c82c296 add preflop actors to blindsantes for determining who was in hand for wtsd calcs 2010-08-03 00:24:14 -04:00
Eric Blade
e8d39711dd fix from carl for wtsd, more tweaks to everleaf regexes 2010-07-31 17:24:06 -04:00
sqlcoder
9c5581caf0 rename stealattempt fields to raisefirstin and derive accordingly 2010-07-27 22:27:18 +01:00
steffen123
71df9b06dd HUD: make it work again after my previous overzealous removal of HP.TTid 2010-07-23 04:45:57 +02:00
steffen123
ad28168d02 DB/TOUR: remove HandsPlayers.tourneyTypeId 2010-07-22 21:03:01 +02:00
steffen123
d65b6e55c8 TOURNEY: fix recording of Hands.tourneyId, allow it to be NULL 2010-07-15 02:08:59 +02:00
steffen123
9e004e8962 DB: remove default row for TT, allow HP.ttId to be NULL and remove default 2010-07-15 01:18:36 +02:00
steffen123
ebf16c6aa9 TOURNEY: store HandsPlayers.tourneysPlayersId 2010-07-15 00:27:57 +02:00
steffen123
5fee5136a9 DB: renamed Hands.handStart to Hands.startTime for consistency 2010-07-11 08:05:54 +02:00
steffen123
3bff176970 Merge branch 'carl'
Conflicts:
	packaging/debian/changelog
	pyfpdb/PokerStarsToFpdb.py
	pyfpdb/TourneySummary.py
2010-07-08 22:33:09 +02:00
steffen123
178b528d3b change calls to python2 back to python 2010-07-08 20:01:03 +02:00