Commit Graph
100 Commits
Author SHA1 Message Date
Worros 3d9026da2c More razz updates 2009-02-25 19:32:12 +09:00
Worros dd6c23ad85 Move markStreets outside of if statement in main processing loop 2009-02-25 02:12:45 +09:00
Worros a8a870548e Merge branch 'master' of git://git.assembla.com/free_poker_tools 2009-02-25 02:08:06 +09:00
Worros a4f0e9a1fd Fulltilt nlhe working, more razz stuff
Everleaf still broken - need to create/move button regex to new abstract
method
2009-02-25 02:05:51 +09:00
Worros 7fd90ce760 Thinko - use right regex 2009-02-25 01:27:10 +09:00
Worros b38c62367a Preliminary razz support for Fulltilt
Breaks stuff
2009-02-25 01:17:25 +09:00
Worros bca9fb15cf Note in code re: os.walk 2009-02-24 22:46:05 +09:00
Worros a4911b8b9e More syntax error 2009-02-23 21:56:29 +09:00
Worros 5aecfb8e30 Oops. fix syntax error 2009-02-23 19:24:21 +09:00
Worros 1c1adfaf08 Preliminary support for Everleaf PLO? 2009-02-22 18:21:49 +09:00
Worros 232c0df33a determineGameType fixed for FTP, PLO working 2009-02-22 18:07:11 +09:00
Worros baae7af5e0 Remove a tonne of debug, neaten output 2009-02-22 14:37:38 +09:00
Worros 3febe073cc Make FullTilt wrk with new importer 2009-02-22 12:42:16 +09:00
Worros 40ccefe105 Separate collected and collectees for output 2009-02-22 01:17:06 +09:00
Worros cf52ee4822 Fix blinds output
Changes self.posted to be a list of lists.
[[p1, "small blind"][p2, "big blind"][p3, "big blind"][p4, "both"]]
2009-02-22 00:22:25 +09:00
Worros 76688ed1c2 Fix regex for posting both blinds
Partially fix output:

neslein: posts small blind [$ 0.05 USD]
dokiprogym: posts big blind [$ 0.10 USD]
EricBlade: posts both blinds [$ 0.15 USD]
Tilting2: posts big blind [$ 0.10 USD]

becomes:

neslein: posts small blind $0.05
dokiprogym: posts big blind $0.10
Tilting2: posts big blind $0.10
EricBlade: posts big blind $0.10

EricBlade should post .15
2009-02-21 23:26:37 +09:00
Worros d196b80a60 Deal with case 'no small blind and walk in bb' 2009-02-21 22:31:57 +09:00
Worros 5c6793d373 Add sanity check to HHC
Make sure input file and output file are different so we dont overwrite
the source.
2009-02-21 22:06:10 +09:00
Worros 420c4fec69 Add 'Uncalled bet' line to output of new converter 2009-02-21 21:37:47 +09:00
Worros e8d90bd705 Fix for table names with '-' in them 2009-02-21 20:42:16 +09:00
Worros 36568075fe Add output line for main import code
Main import should probably read summary, meh
2009-02-21 20:24:11 +09:00
Worros 22c9fd6acb Adds command line operation to file.
Only supports a single file at the moment
2009-02-21 20:05:17 +09:00
Worros 81c92f9599 Revert last change and try alternate
Assumes that the player names cannot have a ':' or a ' ' in them
2009-02-20 17:22:58 +09:00
Worros 65821dbd2b Remove debug line that slipped thorugh in last commit 2009-02-20 16:42:57 +09:00
Worros 77591788e4 Minor regex update for raises in Everleaf 2009-02-20 16:38:13 +09:00
Worros e5ab933659 Fix major bug in fpdb_import
Hat tip to Eric
2009-02-20 16:06:22 +09:00
Worros 08a4d568cc Fix parseHandStartTime for FullTilt
Doesn't come close to fixing Full Tilt tourneys as far as i can tell.
2009-02-20 02:26:29 +09:00
Worros d9656b25f6 Oversight in Hand.py (?)
Bp missing in this function, and doesn't run if called. No idea if the
function has ever been called.
2009-02-20 01:37:48 +09:00
Worros bc8f1b56b6 Remove Unicode mode from file read.
Hope this fixes the issue with Erics source file getting nuked
2009-02-19 22:58:29 +09:00
Worros 98ea23cd49 Couple of additional fixes for import 2009-02-19 22:10:31 +09:00
Worros 50ca5d5457 Fix tab/spacing 2009-02-19 21:15:12 +09:00
Worros 66fe3f990b Merge branch 'master' of git://git.assembla.com/fpdb-eric 2009-02-19 20:35:33 +09:00
Worros 2a90c798a2 Make executable 2009-02-19 20:35:05 +09:00
Worros dcee1c6d28 Merge branch 'master' of git://git.assembla.com/free_poker_tools
Conflicts:

	pyfpdb/fpdb_import.py
2009-02-11 16:40:33 +09:00
Worros 6214131713 Small change - note we should error check 2009-02-05 18:50:50 +09:00
Worros 315d010311 Make Everleaf converter actually function.
Makes HandHistoryConverter actually write out a file to
$hhArchiveBase/sitename/

Adds code in importer call the functions in EverleafToFpdb
2009-02-05 18:28:18 +09:00
Worros 9cd88c0399 Comment patch: FTP HH headers 2009-01-30 13:23:09 +09:00
Worros b023a9404c Quick commit to add the failing Full Tilt HH Header
Only as a comment for now. Need to pull together all the valid Full Tilt
HH lines so we can write a decent regex to match
2009-01-30 02:18:19 +09:00
Worros d684b50415 Merge branch 'master' of git://git.assembla.com/fpdb-eric 2009-01-29 11:27:28 +09:00
Worros c4ce2ea95a Make grapher export image file.
Currently dangerous with no error checking.

Exports a png file in the same dimensions as it appears on screen
2009-01-28 12:51:39 +09:00
Worros e782fbd5f3 Comment out sample session detection code 2009-01-28 12:35:54 +09:00
Worros 1179067033 Merge branch 'master' of git://git.assembla.com/free_poker_tools 2009-01-27 19:35:35 +09:00
Worros 07b765482d Added prelim Betfair parser.
Straight copy of the current Everleaf parser
2009-01-27 16:22:15 +09:00
Worros 30cd579131 Session detection code.
Possible use in showing sessions graphically on the plot
2009-01-22 01:40:05 +09:00
Worros 3bc8327d12 Remove euro symbol is it barfs python 2009-01-22 01:31:39 +09:00
Worros b2c135ee12 Possible fix for problem Eric is reporting in importer 2009-01-19 11:32:34 +09:00
Worros 8cf705240c Change bulk import output slightly 2009-01-17 02:41:18 +09:00
Worros ffb037b1fe Added output totals for bulk import 2009-01-17 02:24:00 +09:00
Worros a3ff477395 Added comment/debug to damaged FTP file
Doesn't fix issue, but documents what the bug is in the FTP software,
and prints the file name and line number that it occurs in so user can
fix.

Ideally the parser itself would be able to deal with this.
2009-01-17 00:24:01 +09:00
Worros 0857739d83 Add Euro Symbol (€) and EUR to regexes 2008-12-31 01:28:28 +09:00
Worros 5d909fb648 Reapply stars regex changed reverted during a merge 2008-12-20 12:20:18 +09:00
Worros 83f50bafd3 Merge branch 'master' of git://git.assembla.com/free_poker_tools into session
Conflicts:

	pyfpdb/Hud.py
2008-12-20 12:19:37 +09:00
Worros 659f0bb508 Grapher: Fix Postgres to work again 2008-12-19 17:27:18 +09:00
Worros db6a8c5b31 Grapher: Make date ranges work - MySQL 2008-12-19 17:21:58 +09:00
Worros 2d700820f4 Add Everleaf to DB init process
Should these come from config on startup...?
2008-12-19 16:58:24 +09:00
Worros 49aa8921e3 Grapher: Update to support mutiple sites and players
Makes sites actually selectable via checkboxes.

Removed the sitename from the graph string for the moment - How that
string is generated needs a major overhaul
2008-12-19 16:52:32 +09:00
Worros dd7ede8903 Adjust regex to read 'and is all-in' 2008-12-17 14:04:29 +09:00
Worros e5e8643557 Minor update to handinfo regex for OnGame 2008-12-17 13:46:16 +09:00
Worros 186ef42663 Upper case Flop Turn and River in board dict 2008-12-16 23:48:49 +09:00
Worros 1a46230176 Add first pass Full Tilt converter 2008-12-16 23:45:58 +09:00
Worros d42739a958 Merge branch 'master' of git://git.assembla.com/mctfpdb 2008-12-16 22:39:51 +09:00
Worros eb6de6c68c Merge branch 'master' of git://git.assembla.com/fpdb-eric 2008-12-16 12:45:05 +09:00
Worros 5a7ccad725 Merge branch 'master' of git://git.assembla.com/fpdb-sql 2008-12-16 12:42:35 +09:00
Worros fe59ec8ac2 Merge branch 'master' of git://git.assembla.com/mctfpdb 2008-12-16 12:32:54 +09:00
Worros 828cfc405d Merge branch 'master' of git://git.assembla.com/fpdb-eric
Conflicts:

	pyfpdb/fpdb_simple.py
2008-12-16 12:17:50 +09:00
Worros 764ef1b286 Merge branch 'master' of git://git.assembla.com/mctfpdb
Merge execution fixes from Ray with toggle button code from Matt.

Conflicts:

	pyfpdb/GuiAutoImport.py
2008-12-15 17:22:49 +09:00
Worros e8bf2d8a22 Additional Player stats from Eleatic Stranger
Variance and $/hand
2008-12-13 14:03:53 +09:00
Worros ec7c21621d Move hand into its own file and fix 2008-12-12 23:29:45 +09:00
Worros 0e2f6bf4ab Fix default value when run from RegressionTest 2008-12-12 20:25:26 +09:00
Worros 6afe8f0240 Add regression test for clean_title function and revert regex change 2008-12-12 20:12:45 +09:00
Worros ff1a2c42b8 HHC - Make getGameTypeAsString actually do a lookup 2008-12-12 19:51:57 +09:00
Worros 1db21d8d0d Merge branch 'exp' of git://git.assembla.com/mctfpdb 2008-12-12 18:52:52 +09:00
Worros 8262705edb Test patch for xaiviax FullTilt deep problem 2008-12-12 17:40:33 +09:00
Worros 02b2e5044c Remove duplicate function from Tables.py 2008-12-12 17:38:55 +09:00
Worros f4ab01ca23 Merge branch 'master' of git://git.assembla.com/mctfpdb
Conflicts:

	pyfpdb/GuiGraphViewer.py
	pyfpdb/Hud.py
2008-12-12 00:50:51 +09:00
Worros 3a1ddad58f Fix crasher in Grapher if no hands returned.
Should alert user or at least draw something in right pane.
2008-12-11 23:55:03 +09:00
Worros 90803b297f PlayerStat update - Postgres fixes (still failing)
Fixed parameter passing to execute - psycopg2 appears to be a bit fussy
about how parameters are passed.

Main query still doesn't work.

psycopg2.DataError: division by zero - appears to be caused by

,round(100*sum(wonAtSD)/sum(sawShowdown)) AS wmsd

Stuck there.
2008-12-11 23:42:33 +09:00
Worros 7fcd2d9c93 Merge branch 'master' of git://git.assembla.com/free_poker_tools 2008-12-11 19:08:24 +09:00
Worros 438b6238e8 Merge branch 'master' of git://git.assembla.com/fpdb-eric 2008-12-11 19:08:12 +09:00
Worros 9ca0574d78 Really basic check that username exists 2008-12-10 21:21:43 +09:00
Worros dc33003ce4 Merge branch 'master' of git://git.assembla.com/fpdb 2008-12-10 20:14:44 +09:00
Worros 8258c19c8f Merge branch 'master' of git://git.assembla.com/fpdb-sql 2008-12-10 19:39:37 +09:00
Worros 5a568527b8 Merge branch 'exp' of git://git.assembla.com/mctfpdb 2008-12-10 19:39:27 +09:00
Worros 390519c549 Merge branch 'exp' of git://git.assembla.com/mctfpdb 2008-12-10 09:50:42 +09:00
Worros f607b3ff63 Merge branch 'master' of git://git.assembla.com/fpdb-sql 2008-12-09 23:50:35 +09:00
Worros 7b05adea80 Merge branch 'master' of git://git.assembla.com/fpdb-eric 2008-12-09 23:49:25 +09:00
Worros 49f1f6bda0 Merge branch 'exp' of git://git.assembla.com/mctfpdb 2008-12-09 23:48:28 +09:00
Worros a73a9d446c Merge branch 'master' of git://git.assembla.com/free_poker_tools 2008-12-08 09:43:42 +09:00
Worros ba944c2d7c Merge branch 'master' of git://git.assembla.com/free_poker_tools
Conflicts:

	pyfpdb/fpdb_simple.py
2008-12-07 18:07:00 +09:00
Worros edd3d3ec07 White space churn to RegressionTester 2008-12-07 17:35:37 +09:00
Worros 977e954574 Fixups to GuiPlayerStats
Now sets up and obeys the radio buttons more correctly.

Also reads the names from the text box, and replaces <player_test> in
the sql query.
2008-12-07 17:06:01 +09:00
Worros 425997d66a Merge branch 'master' of git://repo.or.cz/fpbd-bostik 2008-12-07 14:17:05 +09:00
Worros b1a9109190 Merge branch 'exp' of git://git.assembla.com/mctfpdb 2008-12-07 14:04:00 +09:00
Worros 998ab6eac3 Add start of graph export functionality
No function yet - just adds callback
2008-12-06 20:51:36 +09:00
Worros 88075bc4f2 Colorise the stats rows, add refresh button
Refresh button destroys table at the moment.
2008-12-06 20:50:06 +09:00
Worros 1576387d61 Add GuiPlayerStats to menu 2008-12-06 19:09:18 +09:00
Worros 803491e6fd Add new GUI insterface for players stats
First pass at displaying player stats. Only works if your player id is
3, and you play nl
2008-12-06 19:08:07 +09:00
Worros d17e353509 Merge branch 'exp' of git://git.assembla.com/mctfpdb 2008-12-05 22:50:22 +09:00
Worros 51ce6fc191 Index mods '+0' from sqlcoder on mailing list
Have been tested and provide a significant improvement on import.

"""
Along with new indexes, I think some of the sql in fpdb_simple can be
altered to make it use existing indexes more effectively. Generally
these mods affect statements where the db has a choice of 2 indexes to
use and I think it is choosing badly, e.g. it is using tourneyTypeId
which could match the whole table when it could use the new
siteTourneyNo index which will return very few rows.

To stop the db from using an index I'm just adding zero to the field, so
something like
   playerId = %s
changes to
   playerId+0 = %s
We humans can tell this is no real change at all, but the db sees this
as a change from <field> = <value> to <expression> = <value>, and it can
only use the index if the <field> the index is on is being tested.
(Nowadays you can index expressions in some databases but we'll ignore
that!)
"""
2008-12-05 17:18:13 +09:00
Worros afea3315fc Merge branch 'exp' of git://git.assembla.com/mctfpdb 2008-12-04 18:47:42 +09:00