Commit Graph

4152 Commits

Author SHA1 Message Date
Worros
46dd6524ec Options: Add site_alias function
Function returns the FPDB name for a given site. Should make command line options a bit simpler
2010-12-15 12:44:12 +08:00
Worros
7269926d7b Merge branch 'master' of git://git.assembla.com/free_poker_tools 2010-12-14 12:58:29 +08:00
Worros
7165ea8d29 Merge branch 'master' of git://git.assembla.com/fpdb-gimick 2010-12-14 12:56:29 +08:00
Eratosthenes
f58af28779 Make executables executable. 2010-12-13 13:48:24 -05:00
Eratosthenes
6d8f1ca4f9 New window from id routine. 2010-12-13 13:45:04 -05:00
gimick
c6fbca1e37 pokereval: remove windows pypokereval files - these files now installed in site-packages 2010-12-12 19:48:10 +00:00
Eratosthenes
669fb58471 Make windows more nearly happy - adapt change from Eric. 2010-12-11 10:42:04 -05:00
Worros
aeaf64e469 Merge branch 'master' of git://git.assembla.com/free_poker_tools
Conflicts:
	pyfpdb/TableWindow.py
2010-12-11 09:16:37 +08:00
Eratosthenes
f023527595 Make HUD_main executable (again). 2010-12-10 19:35:43 -05:00
Eratosthenes
f0a5864bf4 Fix autoclose on tourney table change. 2010-12-10 13:41:04 -05:00
Worros
e113f56ac1 Merge branch 'master' of git://git.assembla.com/fpdb-eric 2010-12-11 01:56:53 +08:00
Worros
df7bfedd89 Regression: add PLO .hands file
Appears I forgot to add this previously
2010-12-11 01:45:23 +08:00
Worros
caa2104fa9 Fix for FTP Razz crasher
When a player is listed as playing the hand and sits out between the listing and ante-up join_holecards returned only 2 cards causing Card.encodeRazzStartHand() to crash.

Make sure that join_holecards must return at least 3 cards for stud, and add an entry for this case in the lookup table
2010-12-11 01:26:56 +08:00
Worros
5a5ab451d1 Regression: Fix datetime format for eval() call 2010-12-11 01:19:49 +08:00
Worros
c47fc8b8c0 Regression: FTP Razz crasher
Player6 is listed as playing the hand and sits out between the listing and ante-up

Crashes in encodeRazzStartHand
2010-12-11 01:17:15 +08:00
Worros
ee0ed080ed DerivedStats: Remove erroneous comment 2010-12-11 00:34:27 +08:00
Worros
3cd7eb881b FTP: Change date format handling
The new FTP date format contains local and ET time information, in almost the same way as Stars.

Tested against a new file, an old file, a EUR file and the weird date format that existed for about 3 days
2010-12-11 00:01:00 +08:00
Worros
d922984b91 THP: Add support for Hands table
Will search for <filename>.hands in the same manner as it does for .hp files
2010-12-10 23:59:27 +08:00
Worros
702bbb4c71 Regression: Change validated date - July is the 7th month, not 6th 2010-12-10 23:57:28 +08:00
Worros
e26e219327 Regression: Change validated ET time as date during DLS 2010-12-10 23:56:04 +08:00
Worros
2d5580b7e6 Regression: Change validated CET time, as date is during DLS 2010-12-10 23:53:51 +08:00
Worros
f9ee1510b1 Regression: FTP Razz file, with .hp and .hands
We didn't have an FTP Razz file in the Regression test suite.

This is the new date format from FTP, like Stars contains both local and ET time
2010-12-10 22:59:26 +08:00
Worros
b966be8ec3 Regression: .hands file for FTP EUR file
By default EUR sites (.fr?) use CET in the HH file
2010-12-10 22:46:49 +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
Worros
b543d08d80 Regression: .hands file for FTP with with funky date 2010-12-10 22:27:44 +08:00
Worros
02204edc48 Give storeHands the ability to output test data
Will allow for regression testing of hand start time
2010-12-10 21:35:49 +08:00
Worros
8fa38a26cc GuiStove: Temporary commit - add 'changed' hooks
They dont actually do anything yet.
2010-12-10 20:02:24 +08:00
Worros
267bf93fa5 Database: Comment out unused 'printdata'
Writing documentation for THP at the moment, and HandsActions data doesn't curently having any tests.

Comment out to simplify documentation for the moment.
2010-12-10 18:59:52 +08:00
Worros
9a956e41b6 THP: Allow a single site to be specified on the cli
The normal mode for running THP is to run though all the tests for all sites:

./TestHandsPlayers.py

This is a bit noisy and slow when trying to fix issues in a single parser.

Added '-s' so that you can run the regression tests against a single site

eg.
./TestHandsPlayers.py -s "Full Tilt Poker"
./TestHandsPlayers.py -s PokerStars
./TestHandsPlayers.py -s Winamax
2010-12-10 18:21:21 +08:00
Worros
3db9cfa6a7 Options: Add -s --sitename option 2010-12-10 18:20:52 +08:00
Worros
bc59e12768 Everleaf: Make re_GameInfo error handling consistant with other sites.
When re_GameInfo fails to match now, the first 100 characters of the hand will be printed to the log. Makes it much easier to identify the offending hands.

Error now also throws an FpdbParseError for the importing process to catch
2010-12-10 17:53:59 +08:00
Worros
7721468c92 Merge branch 'chaz' of git://github.com/ChazDazzle/fpdb-chaz 2010-12-10 02:33:14 +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
Eratosthenes
a4dff38c9f Ensure table.key is always temp_key calculated in HUD_main. 2010-12-07 10:24:06 -05:00
Eratosthenes
3fbaa0b0fb Don't try to close HUD mw twice. 2010-12-07 10:20:20 -05:00
Eric Blade
aef3186cfb remove commented log that ray removed 2010-12-06 18:04:54 -05:00
Worros
cfab629779 Regression: New Stars LHE file
Adds a file with a hand where the big blind is also the button
2010-12-06 14:16:59 +08:00
Worros
9235d12d59 Stars: Fix issue where player collected pot
As both big blind and the button - something i wasn't sure was possible
2010-12-06 13:45:58 +08:00
Worros
51011380ba Stove: Start gettextification 2010-12-06 12:51:53 +08:00
Worros
96b55a5bff Stars: Fix regression.
New test file regression-test-files/cash/Stars/Flop/LHE-10max-USD-1.00-2.00-No_max_seats.txt crashed Stars.

Put guard to make sure MAX has a value
2010-12-06 12:48:25 +08: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
Worros
5fb23b3938 Move getSqlPlayerIDs next to the other version of the function 2010-12-06 11:49:28 +08:00
Worros
704bf06e19 Merge branch 'master' of git://git.assembla.com/fpdb-gimick 2010-12-06 11:45:26 +08:00
Worros
bc5cf4c92a Remove tracked .gitignore fix HUD_main permissions 2010-12-06 11:43:09 +08:00
Worros
b465a592de Move regression test file from old folder 2010-12-06 11:41:59 +08:00
chaz@pokeit.co
b37ebb9f4f Made the same 'Hero' changes for tour and summary files. Also made cacheSessions default in the test Config file 2010-12-05 18:24:45 -05:00
chaz@pokeit.co
1a1f9b504b Replaced 'YOUR SCREEN NAME HERE' with Hero in the test file 2010-12-05 17:30:56 -05:00
chaz@pokeit.co
a504fc211c Replaced all of the Hero names in the regression files with 'Hero' 2010-12-05 17:28:31 -05:00
Eric Blade
515557d45e fix merge error 2010-12-05 16:48:12 -05:00
Eric Blade
301348eb5e Merge branch 'master' of git://git.assembla.com/free_poker_tools.git
Conflicts:
	pyfpdb/HUD_main.pyw
2010-12-05 16:39:13 -05:00
Eratosthenes
78fdb37f38 Merge branch 'master' of git://git.assembla.com/fpdboz 2010-12-05 12:53:28 -05:00
Eratosthenes
b80ff5c7f8 Merge branch 'master' of git://git.assembla.com/fpdb 2010-12-05 12:53:19 -05:00
Eratosthenes
f329d85ca7 Fixed table dectection on Ubuntu/KDE. 2010-12-05 12:52:02 -05:00
gimick
46022509de pypokereval: fixes to allow py2exe to compile. Also, place win32 dependencies
in pyfpdb (pyfpdb files can be deleted when there is a site-package on win)

This commit allows fpdb+pypokereval to work on win32 machines without having
 to manually install pypokereval files
2010-12-05 16:59:32 +00:00
Eric Blade
22cf70358f Merge branch 'master' of git://git.assembla.com/fpdboz.git 2010-12-05 01:19:18 -05:00
chaz@pokeit.co
50ac251f9a DB version 147 2010-12-05 00:53:38 -05:00
chaz@pokeit.co
6ea5432c2e Added a placeholder for rebuild_sessionscache() 2010-12-04 21:04:43 -05:00
chaz@pokeit.co
dd707fb0cb Updated the comments 2010-12-04 21:02:21 -05: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
Chaz
c2cda3bf87 Added sessionTimeout Import field to Configuration.py and the Hud_config files. Default set to 30 minutes to start a new session 2010-12-04 17:33:57 -05:00
Eratosthenes
6bfb7df105 Fix file permissions. 2010-12-04 15:31:34 -05:00
Eratosthenes
d47d33587f Fix problem with multiple huds in tourneys at some sites. 2010-12-04 15:29:23 -05:00
Eratosthenes
dd542db59d Update Tables_Demo. Found/fixed bug in XTables. 2010-12-04 11:22:02 -05:00
Worros
c61598b7aa fpdb: Add menu calls for Replayer 2010-12-04 19:10:47 +08:00
Worros
96bf985697 GuiReplayer: Added by lastpoet <maxime@grandchamp.net>
1st Draft to get it in for comments
2010-12-04 18:27:03 +08:00
lastpoet
b4c2614f25 remove irrelevant comments from tooltips 2010-12-04 17:45:39 +08:00
Eric Blade
021fc50236 Merge branch 'master' of git://git.assembla.com/fpdb.git 2010-12-03 16:32:30 -05:00
Eric Blade
8855530617 Merge branch 'master' of git://git.assembla.com/fpdboz.git
Conflicts:
	pyfpdb/Database.py
	pyfpdb/TableWindow.py
2010-12-03 16:14:10 -05:00
Worros
e032b32ea7 Regression: Repair (?) Party hh that seemed to be missing 2 lines 2010-12-04 03:47:23 +08:00
Worros
a4e708507f Stars: More useful exception message of currency match fails 2010-12-04 03:43:06 +08:00
Eratosthenes
94bdc43deb Tables_Demo to work with new Tables stuff. Find Tour tables better. 2010-12-03 11:51:18 -05:00
Worros
8d8f604d12 Party: Make Party Stud H/L partially recognised 2010-12-03 18:13:07 +08:00
Worros
89990628af Regression: Add NLHE Party.fr hand sample 2010-12-03 15:38:41 +08: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
Worros
9b629a467a Stove: Rename range to h_range
range is a resvered word in Python.
2010-12-03 11:46:15 +08:00
Worros
b83242622a Stove: Fix card expansion, move a function or two 2010-12-03 11:14:51 +08:00
Eratosthenes
6f6d27d1fd Merge /home/reb402/workspace/free_poker_tools 2010-12-02 18:04:30 -05:00
Eratosthenes
8942778f8c Some cleanup. Minor refactor. Prep for some changes. 2010-12-02 18:04:13 -05:00
Worros
634d102325 Merge branch 'chaz' of git://github.com/ChazDazzle/fpdb-chaz 2010-12-03 00:25:44 +08:00
Worros
a79dbd8f1b Party: First pass at Party.fr support
The USD regression test files show no change in parse problems - 3 files still fail
2010-12-02 17:40:24 +08:00
Chaz
925db93157 * Added 'cacheSessions' flag
* Added a cacheSessions update call to import_file_dict() in fpdb_import.py
* Added updateSessionsCache() method to Hands
* Added storeSessionsCache() to Database --- WORK IN PROGRESS and set to pass
TO DOs
- add sessions queries to SQL
- complete storeSessionsCache() so it works like we've discussed (save for adding sessionId to HP)
- add SessionsCache keys
- add SessionsCache to the default table creation and deletion methods in Database.py
- update storeSessionsCache() and all the relevant db & sql code so it writes a sessionId to HP
2010-12-02 01:58:02 -05:00
Chaz
a7f3b1326f Added some logic so the importer won't try to send hands to HUD when HudCache is generated from the command line 2010-12-02 00:40:31 -05:00
Chaz
cbd6aa242e Added the 'cacheSessions' config option 2010-12-02 00:35:18 -05: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
Worros
d48cf03aab Party: Remove reencoding to latin-1
This crashes the UTF files from Party.fr - removing
2010-12-02 13:23:10 +08:00
Worros
956182079f Merge branch 'chaz' of git://github.com/ChazDazzle/fpdb-chaz 2010-12-02 11:35:47 +08:00
Worros
d2355c3ae8 FTPSummary: Add alternate Omaha label
Patch originally posted by patrask on IRC

http://hh.kallocain.se/FullTiltPokerSummary.py.patch
2010-12-02 11:27:06 +08: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
68b92b5130 Incremented the db version up to 146 and fixed 1 bug 2010-12-01 16:18:30 -05:00
Erki Ferenc
f94408c881 l10n: updated Hungarian translation 2010-12-01 19:54:53 +01:00
Eratosthenes
ccb3e9edfe Merge /home/reb402/workspace/free_poker_tools 2010-12-01 01:55:03 -05:00
Eratosthenes
a80f18e2b1 Resize HUD when client is resized. Clean up idle functions. 2010-12-01 01:54:42 -05:00
Eratosthenes
62ea67aac5 Fix permissions on HUD_main.pyw, again. 2010-11-30 23:26:35 -05:00
Eratosthenes
fa32ed8c46 Fix problem with multiple tables from same tournament. 2010-11-30 18:33:44 -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
Eratosthenes
0d79fe8f09 Merge branch 'master' of git://git.assembla.com/fpdboz 2010-11-30 12:14:58 -05:00
Eratosthenes
d8f36ba777 Add cheat sheet info. 2010-11-30 11:14:37 -05:00
Worros
07fc254cdb Stove: Remove unnecessary returns 2010-11-30 15:36:35 +08:00
Worros
775b19e7d5 Stove: shift content of parse_args into Stove object
Quick test - still functions correctly on the command line
2010-11-30 15:33:13 +08:00
Worros
e1b1d06ec7 Stove: Rename Holder to Stove
Remove some debug code, and structure cli interface in the same way as other fpdb modules
2010-11-30 15:16:01 +08:00
Worros
404cccb1d9 GuiStove: Add Stud and Draw tabs 2010-11-30 15:13:08 +08:00
Eratosthenes
3f2e1dc0ee Fixed intermittent hanging in foreign_new method. 2010-11-30 01:26:41 -05:00
Steffen Schaumburg
35b5794813 update version in GUI 2010-11-29 22:22:03 +01:00
Chaz
c6802484cb Updated init_hud_stat_vars() so that it no longer requires Filters.py for the offset calculations 2010-11-29 15:20:05 -06:00
Steffen Schaumburg
44557f5666 update l10n 2010-11-29 21:42:00 +01:00
Worros
5232cf4866 Carbon: Fix regression test parse 2010-11-29 21:34:47 +01:00
Worros
cbdfaf62a7 Session Viewer: Add a warning dialog on loading 2010-11-29 21:34:21 +01:00
Eric Blade
2d0ea89b9a comment 2010-11-28 20:24:39 -05:00
Eric Blade
99535cddbb cleanups 2010-11-28 20:15:09 -05:00
Eric Blade
7b1143a6ff make "source" argument to interlocks.acquire mandatory 2010-11-28 20:04:32 -05:00
Eric Blade
e5782dd736 some cleanups and comments 2010-11-28 20:00:56 -05:00
Eric Blade
336fee0f3d oops 2010-11-27 20:36:42 -05:00
Eric Blade
7402c57eb1 --hidden --minimized 2010-11-27 20:35:34 -05:00
Eric Blade
e2b86eb239 Add --autoimport command argument 2010-11-27 19:32:28 -05:00
Eric Blade
f94ad0126a add --xloc and --yloc options for specifying where to start windows at 2010-11-27 19:16:15 -05:00
Eric Blade
2990e5856d Button changes immediately after pressing it instead of waiting until the pipe is ready.
Terminates HUD process rather than asking it to close
2010-11-27 18:34:30 -05:00
Eric Blade
e5f4f5710d read_stdin: return if fail to find table, rather than continue along, also trap KeyError at end of func when checking tournament tables.
(maybe this'll finally fix the hud locking up on table close sometimes?)
2010-11-26 23:13:14 -05:00
Eratosthenes
e30989a852 Fix odd intermittent problem with HUD not opening. 2010-11-26 22:10:51 -05:00
Eratosthenes
a8f12db7f7 Clean up unused imports. 2010-11-26 21:01:34 -05:00
Eratosthenes
cdd987483f Don't put HUD on UB replayer window. 2010-11-26 21:01:01 -05:00
Eric Blade
bfa3cfc20c check for AttributeError at new window_foreign_new call 2010-11-26 18:51:25 -05:00
Eric Blade
c40312b98b Merge branch 'master' of git://git.assembla.com/fpdb-eric 2010-11-26 18:17:39 -05:00
Eric Blade
622b350795 Revert "Merge branch 'chaz' of git://github.com/ChazDazzle/fpdb-chaz"
This reverts commit 61ac6be0fa, reversing
changes made to 18df2ef2c6.

Conflicts:

	pyfpdb/SQL.py
2010-11-26 18:15:28 -05:00
Eric Blade
7c4d08833b add strptime to Database 2010-11-26 16:57:47 -05:00
Eric Blade
5e04f32519 Merge branch 'master' of git://git.assembla.com/fpdboz.git 2010-11-26 09:14:25 -05:00
Worros
9098c3ba03 Regression: Party PLO tourney 2010-11-26 13:38:39 +08:00
Worros
31da6ff170 Winamax: Pull in tournament support from Forrest
Also add tournament directory to regression test file
2010-11-26 12:45:41 +08:00
Worros
122b47e183 Merge branch 'chaz' of git://github.com/ChazDazzle/fpdb-chaz 2010-11-25 20:45:35 +08:00
Worros
b017fa298d Carbon: Fix regression test parse 2010-11-25 20:11:19 +08:00
Chaz
21ac5229cb Fixed styleKey char length to 9 2010-11-25 02:36:34 -06:00
Chaz
872ea008dd Updated database version to 145 2010-11-25 02:35:50 -06:00
Worros
61ac6be0fa Merge branch 'chaz' of git://github.com/ChazDazzle/fpdb-chaz 2010-11-25 11:31:15 +08:00
Chaz
9137347acb Just fixed a few bugs 2010-11-24 15:20:48 -06:00
Chaz
9bb58ca779 Adds the worker id command line option 2010-11-24 15:16:09 -06:00
Chaz
ead567c5cc * Added encoding error handling and the ability to identify the worker responsible for splitting a particular file if several were launched via threading 2010-11-24 15:13:26 -06:00
Chaz
92c8e68914 It's actually an OSError, not an IOError 2010-11-24 14:53:53 -06:00
Chaz
43ec9498e8 Just renamed the new regression file 2010-11-24 14:51:13 -06:00
Chaz
b820cd4895 * Old Stars HHs don't display max seats. Added regression-test-file showing this and handling in the Stars HHC 2010-11-24 14:49:39 -06:00
Chaz
8026ba256a It's %H, not %h 2010-11-24 14:41:12 -06:00
Chaz
ee926ac9ca * Modified init_hud_stat_vars() so that it uses the timezone & day_start offset from Filters.py 2010-11-24 14:18:42 -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
Forrest
18df2ef2c6 add a regression test file for winamax tourney 2010-11-24 14:06:43 +08:00
Worros
d3f07aae45 Stove: Mockup interface for a Stovelike EV calculator page 2010-11-24 11:30:13 +08:00
Eratosthenes
674fda6911 Merge branch 'master' of git://git.assembla.com/fpdb 2010-11-23 16:57:07 -05:00
Eratosthenes
9d89f9807e Make HUD_main.pyw executable, again. 2010-11-23 16:56:41 -05:00
Worros
aa31a4d67b Merge branch 'master' of git://git.assembla.com/free_poker_tools 2010-11-23 13:00:58 +08:00
Worros
ea72ce8201 Merge branch 'master' of git://git.assembla.com/fpdb 2010-11-23 13:00:44 +08:00
Worros
ac2937dc78 Session Viewer: Add a warning dialog on loading 2010-11-23 12:59:23 +08:00
Eratosthenes
2f72f5416e Handle tourney table changes and closures. 2010-11-22 16:37:37 -05:00
Worros
ba1b15048b fpdb.pyw: Fix comment 2010-11-22 13:28:25 +08:00