Commit Graph
100 Commits
Author SHA1 Message Date
Worros ff0872f8de Add some code to kinda detect hand cancellation
hhc.readHandInfo(self)
hhc.readPlayerStacks(self)
hhc.compilePlayerRegexs(self)
hhc.markStreets(self)

Is the order, the first correctly failing regex is markStreets
2009-12-24 03:09:12 +08:00
Worros e18af681cb Add test hand - Hand cancelled 2009-12-24 03:09:12 +08:00
Worros f829ed937e [NEWIMPORT] Move hud call to after database commit
HUD still doesn't quite work, but getting closer - suspect hud_cache rebuild isn't happening
2009-12-24 03:09:11 +08:00
Worros 03deefc1a3 [NEWIMPORT] Fix thinko on insertPlayer
Was returning the player name instead of id in the case where the player exists in the database, but wasn't cached already

Removing some merge gunge too
2009-12-24 03:09:11 +08:00
Worros 72cf9a61ca [NEWIMPORT] Add a commit at the end of the fpdb_import cycle 2009-12-24 03:09:10 +08:00
Worros 5e4cc1c5eb [NEWIMPORT] 'correct' the type for wonWhenSeenStreet1 2009-12-24 03:09:10 +08:00
Worros a717eb437c [NEWIMPOR] Fix insert type for wonAtSD 2009-12-24 03:09:10 +08:00
Worros c1464d64ff [NEWIMPORT] Fix startCash fix 2009-12-24 03:09:09 +08:00
Worros b3d6da8339 [NEWIMPORT] Convert start stack to cents 2009-12-24 03:09:09 +08:00
Worros f527fe60a8 Fix a couple of typos 2009-12-24 03:09:08 +08:00
Worros 22a0c75adf Fix thinko in stub 2009-12-24 03:09:08 +08:00
Worros 318cd10551 [NEWIMPORT] Move HandsPlayers insert statement into SQL.py 2009-12-24 03:09:08 +08:00
Worros 0b711628f9 [NEWIMPORT] Stub remaining HandsPlayers stats 2009-12-24 03:09:04 +08:00
Worros 3584e6dcc1 [NEWIMPORT] Add call to HUD for auto import
Make sure the matching db_handid is recorded in the Hand object for later use
2009-12-24 03:09:00 +08:00
Worros 135a6eaf20 Add test for Stars sawShowdown.
Test currently fails in the old import code and passes on NEWIMPORT

Tests for uncalled allin bet on river, which has been erronously marked as showdown previously
2009-12-24 03:08:59 +08:00
Worros d4989fcd11 Make test file use real database.
Please note this could be destructive
2009-12-24 03:08:56 +08:00
Worros 68b4ebdb57 [NEWIMPORT] Fix sawShowdown stat 2009-12-24 03:08:55 +08:00
Worros b3f1fc2f8c Add beginings of test for sawShowdown - unfinished.
Some sort of weird commit problem going on. Conmmitiing to work on htat
2009-12-24 03:08:52 +08:00
Worros 7212760c67 Newimport - comments for a getPosition function.
Decided that I needed some test functions before I kick on
2009-12-24 03:08:51 +08:00
Worros 3f30878bbd [NEWIMPORT] Partially fix number of hands parsed reporting 2009-12-24 03:08:51 +08:00
Worros 117c377fff Repair recent damage to Options 2009-12-24 03:08:49 +08:00
Worros fc20330f2b [NEWIMPORT] Don't actually writeHand on NEWIMPORT 2009-11-30 15:11:00 +08:00
Worros f30b3a6117 Oops - actually add NEWIMPORT const to Configuration 2009-11-30 14:41:07 +08:00
Worros 36dda2174b Move NEWIMPORT into config
Fix test_PokerStars test to catch exception when importing with the legacy importer
2009-11-30 14:33:32 +08:00
Worros 152933ed49 Merge branch 'master' of git://git.assembla.com/fpdb-eric 2009-11-30 14:23:37 +08:00
Worros 71c2fea1ca Add query object to test 2009-11-30 14:22:58 +08:00
Worros bb38d7e1dd [NEWIMPORT] Clean up HandsPlayers.cardX fetching 2009-11-30 14:20:48 +08:00
Worros db5e321fe0 Fix obvious typo 2009-11-30 10:53:15 +08:00
Worros aed892139d Add -i option for input file 2009-11-30 10:52:28 +08:00
Worros a667fe37be Merge branch 'master' of git://repo.or.cz/fpbd-bostik
Conflicts:
	pyfpdb/HUD_main.py
2009-11-29 18:08:47 +08:00
Worros 8d10cbcd5e test_PokerStars - Add test for 5 card draw 2009-11-29 17:10:14 +08:00
Worros a6a3217bbc Fix draw parsing finally? 2009-11-29 16:54:15 +08:00
Worros 39f27bc781 test_PokerStars: Add 2-7 Lowball test 2009-11-29 15:28:32 +08:00
Worros 9071640182 Fix Draw parsing 2009-11-29 15:22:46 +08:00
Worros f5d8f153b5 Start of fixes to draw parsing 2009-11-29 14:40:32 +08:00
Worros e93412f12d Merge branch 'master' of git://git.assembla.com/fpdb-sql 2009-11-29 11:44:26 +08:00
Worros a13ae41134 Fix MySQL startup error: 2002
2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)"
2009-11-27 20:19:43 +08:00
Worros 0368992289 Add test config used by py.test 2009-11-27 00:19:31 +08:00
Worros 8371ed244a test_PokerStars - add test Stud files and import
Also add commented out tests for Draw games
2009-11-27 00:12:57 +08:00
Worros 411d4ac792 test_PokerStars - Add NLHE-USD-MTT-5r-200710.txt
Commented out for the moment, it has never parsed in old or new code.
2009-11-26 22:52:27 +08:00
Worros 5b5216bbe2 Fix test_PokerStars.py 2009-11-26 22:41:42 +08:00
Worros b794d20f6d Make sqlite :memory: work again 2009-11-26 22:02:48 +08:00
Worros 9e7e22ffa1 Start of in tree HH archive 2009-11-26 17:00:22 +08:00
Worros ac96d88a8c Merge branch 'master' of git://git.assembla.com/fpdb-sql 2009-11-26 10:01:53 +08:00
Worros c9901c3106 Merge branch 'master' of git://git.assembla.com/fpdb-eric 2009-11-26 10:01:39 +08:00
Worros aee9a7339c [NEWIMPORT] Stop duplicate hands from crashing import 2009-11-25 16:29:30 +08:00
Worros 83f06c35cc [NEWIMPORT] HandsPlayers.CBet stats 2009-11-25 14:59:29 +08:00
Worros 30332d2132 Remove forced assert 2009-11-25 10:27:54 +08:00
Worros 1b2a45b77e Prefs: Fix display when a comment node exists in config 2009-11-25 09:06:01 +08:00
Worros a87a145c28 [NEWIMPORT] HandsPlayers.streetXCalls and streetXBets
Pretty sure the bets stat is wrong
2009-11-25 00:57:14 +08:00
Worros 3bb1656603 [NEWIMPORT] Add HandsPlayers.wonAtSD 2009-11-24 23:23:21 +08:00
Worros 9203e0b0d8 [NEWIMPORT] HandsPlayers.sawShowdown added 2009-11-24 23:14:43 +08:00
Worros dc1b0d2e38 [NEWIMPORT] Calculate wonWhenSeenStreet1
Won is defined as 'collected money from the pot'

Seen street 1 does not require vpip on street 0
2009-11-24 21:58:27 +08:00
Worros e9a858e4cd Make DEBUG = False in DerivedStats 2009-11-24 17:55:00 +08:00
Worros 48c395565e [NEWIMPORT] Add HandsPlayers.totalProfit
Grapher now works after import yay
2009-11-24 17:29:54 +08:00
Worros d65ee55b64 [NEWIMPORT] Calculate rake, make card calculation holdem only
Stud card fetching still terminally broken
2009-11-24 16:44:46 +08:00
Worros d617f1c4e0 [NEWIMPORT] Update Database.storeHandsPlayers 2009-11-24 16:39:59 +08:00
Worros ef9abd2948 Force all output from HHCs to by utf8 2009-11-24 11:21:55 +08:00
Worros 34e7fb0459 [NEWIMPORT] Fix HandsPlayers.cardX init 2009-11-23 00:20:51 +08:00
Worros 943e188a4d [NEWIMPORT] Hole card data for flop games
Take some code from Grindi to calculate playersAtStreetX and streetXRaises
2009-11-23 00:05:23 +08:00
Worros 1650b76ea5 Merge branch 'master' of git://git.assembla.com/fpdb-eric 2009-11-22 13:07:49 +08:00
Worros d08e9a1ea3 Add support for UTF-8 HH type.
Able to parse and import an EUR hh file
2009-11-22 12:34:11 +08:00
Worros 14ccde73a2 Fix Playerstats for Pot Limit
Still broken for cap games. Need a more flexible mechanism for this
2009-11-21 11:16:08 +08:00
Worros 8d2b315fc8 Fix PL in Graph viewer
Grapher still doesn't support the cap games, that code could use some cleanout.
2009-11-21 11:11:31 +08:00
Worros 348420f30d Merge branch 'master' of git://repo.or.cz/fpbd-bostik 2009-11-20 21:28:05 +08:00
Worros 4d4387bd94 Removing second layer of try:
Killing until we figure out what it was supposed to catch
2009-11-20 15:11:58 +08:00
Worros eedffdf472 Merge branch 'master' of git://git.assembla.com/fpdb-sql 2009-11-20 09:11:46 +08:00
Worros 5ba4dbb0e7 Clean DerivedStats.py 2009-11-19 17:54:00 +08:00
Worros ea323d0d22 Fix mod() test for sqlite 2009-11-19 17:33:12 +08:00
Worros 33592fbc4e Add math function for sqlite - may still be broken 2009-11-19 17:24:22 +08:00
Worros eadd7c045c Adding broken mod() test 2009-11-19 17:22:53 +08:00
Worros 571cbe07a0 Add test functions for SQLite
Added test for VARIANCE()

Added test for floor()
2009-11-19 15:28:48 +08:00
Worros 29d135da1b Merge branch 'master' of git://git.assembla.com/fpdb-sql 2009-11-18 13:52:41 +08:00
Worros 36fe5d2617 Merge branch 'master' of git://git.assembla.com/free_poker_tools 2009-11-18 00:14:21 +08:00
Worros 5b02153b43 Merge branch 'master' of git://git.assembla.com/free_poker_tools 2009-11-16 15:34:23 +08:00
Worros c9b9c848be Add aggregate function VARIANCE() for sqlite 2009-11-16 15:19:24 +08:00
Worros 15ea852d76 Extend the tablename field in sql to 22 characters 2009-11-07 10:17:28 +08:00
Worros 5c7cce090e [NEWIMPORT] Added street0VPI to HandsPlayers
Also fixed last patch for streetXSeen
2009-11-06 19:30:50 +08:00
Worros 006d7164ea [NEWIMPORT] Insert streetXSeen col into HandsPlayers 2009-11-06 19:13:52 +08:00
Worros 5aef7b6054 [NEWIMPORT] Insert winnings column into HandsPlayers 2009-11-06 18:39:59 +08:00
Worros bea6bf2d6b Merge branch 'master' of git://git.assembla.com/fpdb-mme
Conflicts:
	pyfpdb/Configuration.py
2009-11-05 12:22:05 +08:00
Worros 5d6138e2a8 Merge branch 'master' of git://git.assembla.com/fpdb-eric 2009-11-05 12:16:32 +08:00
Worros cc89433ba8 Merge branch 'master' of git://git.assembla.com/fpdb-eric
Conflicts:
	pyfpdb/Configuration.py
2009-11-04 14:44:25 +08:00
Worros f276ad4dfa Merge branch 'master' of git://git.assembla.com/fpdb-mme
Conflicts:
	pyfpdb/Configuration.py
2009-11-03 17:25:54 +08:00
Worros 28ca49d592 Fix GuiSessionStats.py for sqlite
Fix based on solution from Eleatic Stranger on 2+2
2009-11-02 17:23:50 +08:00
Worros f4aa5f1fe1 First fix for sqlite in PlayerStats
Fix courtesy of Eleatic Stranger on 2+2 - Page still does not work, need to find an sqlite equivalent to to_char() and variance()
2009-11-02 13:38:36 +08:00
Worros d5604e0e73 Merge branch 'master' of git://git.assembla.com/fpdb-eric 2009-10-31 08:57:04 +08:00
Worros ae7e721ede Merge branch 'master' of git://git.assembla.com/fpdb-mme 2009-10-31 08:56:36 +08:00
Worros ce0e2c139b Revert "Print out actual exception when import fails"
This reverts commit 626ff49eb4.

Turns out this commit is python 2.6 syntax
2009-10-31 08:55:54 +08:00
Worros c56f9c28fd Merge branch 'master' of git://repo.or.cz/fpbd-bostik 2009-10-30 14:37:05 +08:00
Worros 3f09bf3d65 Merge branch 'master' of git://git.assembla.com/fpdb-mme 2009-10-30 14:36:42 +08:00
Worros 636727ebb6 Start of Partouche support, shift NEWIMPORT functions 2009-10-30 14:35:45 +08:00
Worros a872769b2b Fix cli to Everleaf 2009-10-29 16:37:33 +08:00
Worros 626ff49eb4 Print out actual exception when import fails 2009-10-29 13:17:17 +08:00
Worros d80360b3bb Merge branch 'master' of git://git.assembla.com/free_poker_tools 2009-10-29 12:28:48 +08:00
Worros 159c39245f Merge branch 'master' of git://repo.or.cz/fpbd-bostik 2009-10-28 10:14:19 +08:00
Worros 57f05ba2fb Merge branch 'master' of git://git.assembla.com/fpdb-mme 2009-10-28 00:21:13 +08:00
Worros bef37abbf5 Merge branch 'master' of git://git.assembla.com/free_poker_tools 2009-10-28 00:20:55 +08:00
Worros 6cb16df055 Merge branch 'master' of git://git.assembla.com/fpdb-eric 2009-10-28 00:20:44 +08:00
Worros 69ece6eeba Merge branch 'master' of git://repo.or.cz/fpbd-bostik 2009-10-28 00:20:26 +08:00