Commit Graph

274 Commits

Author SHA1 Message Date
Chaz Littlejohn
d7ed15bcfe Added the column 'showed' to handsplayers which flags whether or not a player showed his or her hand. If false and 'sawSD' is true then they mucked. If true and 'sawSD' is false, then they showed outside of a showdown (site dependent). Also fixed up readShownCards in FTP's hhc so it recorded mucked and showed correctly. 2011-04-05 02:41:53 +00:00
Chaz Littlejohn
d98a28ea0a Added support for board cards in FTP run it twice (RIT) hands. Hands continues to store the standard board for the hand, while run it twice board cards dealt after the all in are stored in the new Boards table. Designed to allow for more than 2 boards if a hand history allows it. Can be enabled for other sites by adding regex to detect multiple FLOP|TURN|RIVER deals in hhc.markStreets, and by updating hhc.readCommunityCards to save RIT streets and set hand.runItTimes with the number of deals. The Hands table now includes a 'runIt' BOOL indicating if a hands was run multiple times and board inserts are done in the storeHand method. 2011-04-04 04:50:01 +00:00
Chaz Littlejohn
f55cd5569d Added methods for storing the filename and import statistics in a new 'Files' table which links with the Hands table via Hands.fileId. Extended support for storing mixed game information for Full Tilt Poker coming from the filename, and updated mixed game dictionaries for PokerStars. Added a field in GameTypes to track this mixed game variable entitled 'mix' which takes on the string value of 'none' if not a mix game hand. 2011-04-02 23:56:52 +00:00
Chaz Littlejohn
dc839c9cae Merge branch 'sorrow' into chazdazzle 2011-03-29 14:04:59 +00:00
Worros
efa1a9e6cf SQL: Change column types to 'timestamp' for sessionCache 2011-03-29 15:36:48 +08:00
Worros
59b65ca146 Merge branch 'chazdazzle' of git://github.com/ChazDazzle/fpdb-chaz
Conflicts:
	pyfpdb/FulltiltToFpdb.py
2011-03-29 13:52:08 +08:00
Chaz Littlejohn
300340218b specifiying 'utf8' CHARSET in Players.name field not required and will lead to a conflict if mysql database created using a different utf-8 collation 2011-03-28 18:34:05 +00:00
Chaz Littlejohn
a87f43f933 Updated the import process for Draw hands so that cards, along with additional draws can now be stored. HandsPlayers now includes 20 card fields to accomodate up to 4 five card hands for each player. The regex for the 'stands pat' action was also improved so that hero cards from those streets could be taken from that line of text 2011-03-24 06:00:10 +00:00
Chaz Littlejohn
3e9dacf900 Added a rebuild_sessionscache method for creating the SC table from hands in the database 2011-03-23 19:27:56 +00:00
Chaz Littlejohn
dd6ce46487 Added methods to create utilize a lock table for managing access to the database during a multi-threaded import. Currently, only MySQL is supported 2011-03-23 19:27:55 +00:00
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
gimick
ed5234d24a GUI: BB graph not working in postgres - add additional group-by column 2011-03-23 09:38:50 +00:00
Steffen Schaumburg
8a519699b5 update copyright year 2011-03-10 06:16:31 +01:00
DoNoBaN
e169f32242 Added raiseToSteal stat 2011-02-25 15:37:11 +01:00
DoNoBaN
2b716af46c Added Success Steal for detailed stats
Needs add it to gui_cash_stats
2011-02-18 16:17:21 +01:00
DoNoBaN
cfa87c9870 Merge branch 'master' of git://git.assembla.com/fpdboz 2011-02-18 00:45:07 +01:00
DoNoBaN
aea40ab605 Add success steal for detailed stats 2011-02-18 00:42:59 +01:00
Worros
e4a3de1272 Merge branch 'chaz' of git://github.com/ChazDazzle/fpdb-chaz 2011-02-17 11:28:44 +08:00
Steffen Schaumburg
671dc1c7ca fix missing line in SQL 2011-02-14 16:42:25 +01:00
Worros
3d168cee6e Merge branch 'master' of git://git.assembla.com/donoban-fpdb 2011-02-13 23:47:15 +08:00
DoNoBaN
0a1389244d Added cold 4bet, squeeze and success steal
4bet and foldto3/4bet enabled for Detailed Stats

Removed street0 other raises (they was unused)
2011-02-12 14:11:41 +01:00
DoNoBaN
6370fca9ec Added 4bet and fold to 3/4bet at detailed cash stats pages 2011-02-11 16:37:28 +01:00
Worros
2a586cf460 SQL: Add function to fetch tourney ids 2011-02-11 17:51:18 +08:00
DoNoBaN
200c3a3ff6 Fixed problems in 3/4 bet 2011-02-08 23:02:16 +01:00
gimick
c2200ee7ef Merge branch 'master' of git://git.assembla.com/free_poker_tools 2011-02-05 15:11:52 +00:00
gimick
be96f14fd2 Merge branch 'master' of git://git.assembla.com/fpdboz 2011-02-05 14:38:17 +00:00
Eratosthenes
b4ef4bdecb SQL tokens with leading digits are not allowed. 2011-02-04 11:38:35 -05:00
gimick
5985d7eba5 Merge branch 'master' of git://git.assembla.com/fpdboz 2011-02-03 20:58:05 +00:00
Donoban
1a0d76686f Added 4bet and fold to 4bet stat 2011-02-03 05:04:12 +01:00
gimick
0450424b51 GUI: show 2dp for aggfac (sqlite only, fixed for other db's for code consistency) 2011-02-02 20:38:34 +00:00
Donoban
13758dd45a Added fold to 3bet 2011-02-02 03:35:38 +01:00
chaz@pokeit.co
990e226254 storeSessionsCache() now adds a sessionId to the Hands table 2011-01-01 03:35:14 -05:00
chaz@pokeit.co
838c626bba Changed the HandsActions table join index from 'handsPlayersId' to 'handId' and 'playerId'. This allows us to use executemany(), which is faster, in storeHandsPlayers when storing actions. 2010-12-31 15:30:29 -05:00
gimick
3437f99db7 HUD: First hand in database missing from HUD stats 2010-12-26 21:42:16 +00:00
Steffen Schaumburg
788668128e Merge branch 'gimick' 2010-12-23 08:43:51 +01:00
gimick
e3f0e971e6 GuiRingPlayerStats: Fix > 100% CB stat, and clarify helptext for CB 2010-12-22 15:07:58 +00:00
Worros
06978fb77b SQL: Add get_gameinfo_from_hid 2010-12-17 18:59:01 +08:00
Worros
7dd8b9de16 Rename gameTypeId to gametypeId
Go through and change all references to gameTypeId to gametypeId to make it consistent.

The database field is named with the lowercase version, and MySQL is case sensitive.

This may have been causing minor issues in multiple areas when attempting to join on gametype.
2010-12-10 22:31:12 +08:00
chaz@pokeit.co
95d14911f3 Fixed a variety of bugs in storeSessionsCache() and the corresponding SQL statements 2010-12-08 16:32:26 -05:00
Worros
352c40baab Merge branch 'chaz' of git://github.com/ChazDazzle/fpdb-chaz
Conflicts:
	pyfpdb/regression-test-files/cash/Stars/Flop/LHE-10max-USD-1.00-2.00-No_max_seats.txt
2010-12-06 11:51:16 +08:00
Chaz
0c46965d98 Finished up code for creating and updating SessionsCache. Table includes fields for sessionStart, sessionEnd, ring hands, tournament hands, ring totalProfit, and ring bigBets won during each session. bigBets field is a python float stored as a REAL in the database (I am open to alternative suggestions). Also, storeSessions is currently set to False. 2010-12-04 17:40:48 -05:00
Worros
1e749d3cf3 Tourney Player Viewer fix for Bugid 0000050
SQL case statements only divided by 100 if the currency was USD.

This is a temporary fix - what we probably want is WHEN tt.currency != PLAY or FPP
2010-12-03 12:34:58 +08:00
Chaz
5a2fcea9df turns out the the '+0' is for indexing and has nothing to do with NULLS so I put it back in 2010-12-02 00:27:03 -05:00
Chaz
5fd3dddf2b * update_hudcache wasn't updating existing cashgame records because it was trying to match a NULL tourneyTypeId with a %s None value. Changed the logic of the SQL to handle this situation. It appeared like someone had tried to handle this by adding '+0' to the NULL record but it doesn't work.
* Deleted the attempted '+0' NULL value handling for gametypeId. gametypeId should never be null as an error would have already been thrown before it was inserted
2010-12-01 16:35:38 -05:00
Chaz
e0f76a508c reverted HudCache styleKey to include only YYMMDD - however, it now stores the d000000 date based off the tz & offset 2010-11-30 14:05:28 -05:00
Chaz
21ac5229cb Fixed styleKey char length to 9 2010-11-25 02:36:34 -06:00
Chaz
8026ba256a It's %H, not %h 2010-11-24 14:41:12 -06:00
Chaz
ac4cae5abf * Updated the methods, variables, and SQL in Database.py and SQL.py to add Hours to the HudCache.styleKey field 2010-11-24 14:14:29 -06:00
lastpoet
6e00ba9d78 add date boundaries in filters 2010-10-13 14:08:48 +08:00
steffen123
43a5fb0f74 Merge branch 'carl' 2010-10-10 17:48:54 +02:00