Commit Graph
100 Commits
Author SHA1 Message Date
Worros de39d1cabf Add all Timezones that Stars supports to TZ function
All timezones outside of Australia I dodn't define for the moment.

Still requires support for actually getting said timezone, but were on our way.
2010-07-29 22:57:57 +08:00
Worros ac728fffb2 FTP and Timezone fix.
Error reported with the following hand hostory from FTP France:

Full Tilt Poker.fr Game #22632637058: Daily Euro (174599326), Table 3 - 10/20 - No Limit Hold'em - 20:15:39 CET - 2010/07/27

The existing FTP parser crashed on CET times.

1) Fixed parser to accept CET
2) Added timezone offset into HHC

Not happy with TZ1/TZ2 solution.
2010-07-29 19:59:45 +08:00
Worros 0cd5b50b2f Merge branch 'master' of git://git.assembla.com/fpdb
Conflicts:
	pyfpdb/FulltiltToFpdb.py
2010-07-28 11:49:07 +08:00
Worros 72f395bab0 Merge branch 'master' of git://git.assembla.com/fpdb
Conflicts:
	pyfpdb/FulltiltToFpdb.py
2010-07-22 10:49:22 +08:00
Worros 6da2c6de82 Merge branch 'master' of git://github.com/kangaderoo/fpdb-kangaderoo
Conflicts:
	pyfpdb/FulltiltToFpdb.py
2010-07-22 10:48:22 +08:00
Worros 585fd2feb2 Update graph and session queries to identify ring games 2010-07-12 18:41:28 +10:00
Worros 627c044b6f Fix grapher so that only cash limits show up 2010-07-12 18:19:01 +10:00
Worros e7776de8f1 Fix startTime change in remaining files 2010-07-08 23:30:02 +08:00
Worros 7c8339485d Fix startTime variable change from another patch 2010-07-08 23:14:55 +08:00
Worros 52ae2e6b1f Merge branch 'master' of git://git.assembla.com/fpdb
Conflicts:
	pyfpdb/DatabaseManager.py
	pyfpdb/TourneySummary.py
	setup.py
2010-07-08 15:48:21 +08:00
Worros 4d4d6f297f Merge branch 'master' of git://git.assembla.com/fpdb-gimick 2010-07-08 11:44:10 +08:00
Worros 01a853d84e Give Makefile a 'release' target 2010-07-07 12:48:13 +08:00
Worros 1d47fbb3c5 Add simple IMAP email fetcher 2010-07-07 10:47:02 +08:00
Worros f44947c8a0 Add a new sample file for parsing website results.
Decided to knock up a quick proof of concept for fetching and parsing tournament results from a website.

Specifically uses:
- Pythons Beautiful Soup library
- P5s results pages - replace playername with the desired p5s username (eg. taypaur)

Of note; no tournament ids are displayed on any of the sites, so for this to work we may need to add a field like 'p5sid'
2010-07-06 16:13:25 +08:00
Worros 958e67beac Merge branch 'master' of git://git.assembla.com/fpdb-gimick 2010-07-06 12:18:16 +08:00
Worros 4577cfbfa2 some cleanups:
- updated copyright notices
- added copyright notices that were missing
- changed python to python2
- added gpl-2/3 license texts
- removed THANKS.txt file as the wiki version is more up to date
- removed empty fpdb_db.py
- added GPL2 to debian license file

Conflicts:

	pyfpdb/Database.py
	pyfpdb/DerivedStats.py
	pyfpdb/SQL.py
	pyfpdb/SummaryEverleaf.py
	pyfpdb/TournamentTracker.py
	pyfpdb/Tourney.py
	run_fpdb.py
2010-07-05 12:17:08 +08:00
Worros c1c3cdf8bd Merge branch 'master' of git://git.assembla.com/fpdb-gimick 2010-07-03 13:20:32 +08:00
Worros 072ead3250 Merge branch 'master' of git://repo.or.cz/fpbd-bostik 2010-07-03 13:04:13 +08:00
Worros 68e3f5b181 CarbonPokerToFpdb: Fix for Black Chip poker
This site records a timestamp for every action
2010-07-01 21:53:24 +08:00
Worros 7acaa95151 Merge branch 'master' of git://git.assembla.com/fpdb-gimick 2010-06-30 12:54:13 +08:00
Worros e0b51bee07 Really add the 0.20/0.40 limit level
Limit occurs in Stars 8 game
2010-06-25 16:58:14 +08:00
Worros 06e5e5ec26 Merge branch 'master' of git://git.assembla.com/fpdb-gimick 2010-06-25 16:22:38 +08:00
Worros 5720012b3b Actually remove fpdb.py 2010-06-21 18:44:38 +08:00
Worros 77211cd4be Revert change to HUD_main window 2010-06-21 18:44:04 +08:00
Worros cf4e80cfa3 Add new test file, delete fpdb.py 2010-06-21 18:42:15 +08:00
Worros d6f2cd4e83 Add utf8 encoding line to fpdb.pyw 2010-06-21 18:41:31 +08:00
Worros cf2b913592 make CLI parameters to run_fpdb.py and fpdb.py work again
Conflicts:

	pyfpdb/fpdb.py
	run_fpdb.py
2010-06-21 14:49:56 +08:00
Worros 79a6aa8f48 Merge branch 'master' of git://github.com/kangaderoo/fpdb-kangaderoo 2010-06-21 14:45:03 +08:00
Worros 6902bf8150 FTP Stud steal examples.
Stud steal examples provided by Cardvark on 2+2
2010-06-21 13:12:52 +08:00
Worros d647a3a5ec Adjust author names on request 2010-06-21 12:44:13 +08:00
Worros 057a864794 Stars: Add 0.20/0.40 limit 2010-06-19 08:42:49 +08:00
Worros 0ee7724d00 Merge branch 'master' of git://git.assembla.com/fpdb-gimick 2010-06-18 18:58:16 +08:00
Worros 00dd86ee19 Fix sessionStats query to exclude tourney hands. 2010-06-17 12:57:31 +08:00
Worros 61e3f79a7f Merge branch 'master' of git://git.assembla.com/fpdb-sql 2010-06-15 11:07:24 +08:00
Worros 498eb486b5 Merge branch 'master' of git://git.assembla.com/fpdb-sql 2010-06-13 13:33:02 +08:00
Worros 5660d6cb5e Merge branch 'master' of git://git.assembla.com/fpdb-gimick 2010-06-08 13:30:30 +08:00
Worros 5f1308688b Merge branch 'master' of git://git.assembla.com/fpdb-sql 2010-06-08 13:17:20 +08:00
Worros 523a70ebd8 Merge branch 'master' of git://repo.or.cz/fpbd-bostik 2010-06-08 11:47:14 +08:00
Worros 3d7668bde5 Add required import 2010-06-05 18:00:41 +08:00
Worros 18a3af2e88 Fix HHC init and python 2.5 incompatibility 2010-06-05 17:58:00 +08:00
Worros 3b823574ab Bump version to 0.20 2010-06-05 00:44:40 +08:00
Worros 0c3cdb12f8 General cleanup - Exception messages and improved logging.
Stars HHC, HHC itself and Hand.

Should not get the first 100 characters of an failing hand in the log, which contains the handid for later reference.

Played around with the number of characters a while ago - 100 chars is about the sweet spot.
2010-06-04 15:59:47 +08:00
Worros 12ad272f91 SQL.py - Add functions for listing indexes.
Not used anywhere - may be a good reference at some point
2010-06-04 15:26:50 +08:00
Worros 212438a0c6 Database.py - Additional logging and comments 2010-06-04 15:25:56 +08:00
Worros 6b00311756 Make sqlite index deletion and creation work.
Also updated the coding style and logging in that area.
2010-06-04 14:37:46 +08:00
Worros def398e0c2 Merge branch 'master' of git://git.assembla.com/fpdb-sql 2010-06-04 05:42:28 +08:00
Worros e17058953c Add preliminary functions and variables for hex encoding patch
Kangaderoo has a patch which potentially fixes storage and display issues for users who do not have their database text storage as utf8.

Functions and variables added to Charset to disect the patch
2010-06-04 05:36:59 +08:00
Worros 23ae26259b Steffen reported a FTP file in UTF-8 format.
Added it as the 3rd codec tested
2010-06-04 04:17:30 +08:00
Worros 994f0fdccc Modify recent patch from Steffen adding fold stats
- Remove added whitespace
- Reformatted debug strings in preferred printf style (and starting with DEBUG:)
- Swapped len(aggrers)>0 and i>0 for short circuit evaluation, and reformatted spacing for consistent coding style
-- (NOTE: for NLHE this will definitely be faster as less hands go to flop - may be slower for limit games)

Also added a couple of comments near enumerate() calls about 2.5 to 2.6 syntax
2010-06-04 03:02:07 +08:00
Worros 9ac46c8c92 Add to Stars limit lookup table. 2010-04-23 17:09:08 +08:00
Worros 6e60314926 First part of making FTP archive files work 2010-04-23 11:49:57 +08:00
Worros d11623c736 Update Session viewer based on Socratic comments 2010-04-23 11:39:52 +08:00
Worros c0ebc4b7cf Update to Session viewer
Fix a couple of crashers

- Make sure last session in list is displayed correctly
- Actually calculate hands/hour (Thanks Socratic)
- Make graph display the correct number of sessions
2010-04-22 23:22:28 +08:00
Worros 5aadf643be Add '2' to the Lim_Blinds lookup table
Fixes Dogs import issue.
2010-04-23 00:36:12 +08:00
Worros 3dd5f92a3c Add logging for two areas, fix RAZZ v Razz issue
Add ERROR conditions for determineGameType failing, and raise a FpdbParseError in each case
2010-04-23 00:33:24 +08:00
Worros 6ba7621f2a Fix 'errors' stat in importer
Instead of:
GuiBulkImport done: Stored: 32  Duplicates: 0   Partial: 0  Errors: 32 in 0.530081987381 seconds - 0/sec

We have:
GuiBulkImport done: Stored: 0   Duplicates: 0   Partial: 0  Errors: 32 in 0.530081987381 seconds - 0/sec
2010-04-23 00:28:30 +08:00
Worros b14bed4e9b Fix last patch - add pass 2010-04-15 15:48:57 +08:00
Worros 81c731b42e Fix for CBet stat
Patch from bbtgaf@googlemail.com aka gimick

DerivedStats.betStreet() was only functioning if the player was the first person to act on a street.

If the player was checked to the function would exit as False before ever finding the player
2010-04-15 14:51:20 +08:00
Worros fb6af1fe75 Fix for PT-Stud exported Stars HH's
Exports files as 'RAZZ LIMIT' instead of 'Razz Limit'
2010-03-30 13:04:39 +08:00
Worros 3c67d5f286 Merge branch 'master' of git://git.assembla.com/fpdb-sql 2010-03-15 18:22:07 +08:00
Worros 685dd68cd1 Update version in makefile 2010-03-05 12:06:00 +08:00
Worros 950b037b39 Merge branch 'master' of git://git.assembla.com/free_poker_tools 2010-03-05 12:03:40 +08:00
Worros 14d2861cdd Re-enable 'variance' for sqlite. 2010-03-05 11:55:00 +08:00
Worros a698b2e16d PlayerStats: Fix sorting in # Hands col
Patch from Almer Visser.

Using %d causes Gtk to order as a string rather than a number.

Convert to %1.0f and issue disappears.
2010-03-04 12:10:28 -05:00
Worros 6c05bac1d0 Merge branch 'master' of git://git.assembla.com/free_poker_tools 2010-03-04 19:48:40 +08:00
Worros b893d6a00d Merge branch 'master' of git://git.assembla.com/fpdb-sql 2010-03-04 19:48:21 +08:00
Worros 0e707c19f8 PlayerStats: Fix sorting in # Hands col
Patch from Almer Visser.

Using %d causes Gtk to order as a string rather than a number.

Convert to %1.0f and issue disappears.
2010-03-04 17:50:51 +08:00
Worros 6a17609040 FullTilt: Playernames can be 2 chars long
Found a hand history where the playername was 'OG'. The parser assumed player names were a minimum of 3 characters.
2010-03-02 15:51:40 +08:00
Worros 085f46d3da Merge branch 'master' of git://git.assembla.com/fpdb-sql 2010-02-28 12:28:58 +08:00
Worros 9505cdc497 Merge branch 'master' of git://github.com/kangaderoo/fpdb-kangaderoo 2010-02-27 15:45:56 +08:00
Worros 2fb151fdc8 Merge branch 'master' of git://git.assembla.com/free_poker_tools 2010-02-27 15:45:42 +08:00
Worros 8c08a6fcc5 Merge branch 'master' of git://github.com/kangaderoo/fpdb-kangaderoo 2010-02-23 09:41:37 +08:00
Worros 773ba71499 Change blind semantics slightly to improve accounting.
This should improve the case where a second small blind is added.

The player committing the second sb still has a 1xsb accouting error
2010-02-17 19:57:26 +08:00
Worros 44d994303c Add comment regarding accounting error 2010-02-16 00:42:13 +08:00
Worros fcd0ba3dd1 PokerStarsToFpdb: allow a second small blind to be posted
If a player sits out a sb in a cash game they can post it after the button

There is still an accounting error in the way we calculate the returned bet.
2010-02-16 00:34:18 +08:00
Worros c0e0c3e596 Add comment to Bulk import
Too lazy to stash
2010-02-15 23:26:23 +08:00
Worros d37f301b10 Revert "a wtsd fix, but figures looks further out if anything now. see riterman in FLHE_6max_sawflop_wrong.txt for an example where street1seen is still not set"
This reverts commit 6814538594.
2010-02-15 00:01:36 +08:00
Worros 857c7f524d PokerStarsToFpdb - regex fix for actions
sqlcoder had a hh file containing

"playername: folds " - ie with a space on the end.
2010-02-14 23:54:19 +08:00
Worros 9f27ddabad Merge branch 'master' of git://repo.or.cz/fpbd-bostik 2010-02-08 11:17:56 +08:00
Worros 4e64ec7abc Merge branch 'master' of git://git.assembla.com/free_poker_tools 2010-02-08 11:17:24 +08:00
Worros 55cb03b4f2 Merge branch 'master' of git://git.assembla.com/fpdb-sql 2010-02-07 19:56:46 +08:00
Worros b996a884de PokerStarsTo? Fpdb: Fix subtle bug in re_Action
The bet action could become multiline greedy if there was a playername starting with 'card' in the next line.

"""
danny purse: bets $0.50
cardjunkie25: calls $0.50
"""

Would match "danny purse: bets $0.50\ncard", and the rest of that line would be ignored.

Added '$' to the end of the regex to make sure that it is limited to 1 line
2010-02-07 19:21:32 +08:00
Worros ee66abfecc Revert "PokerStarsTo Fpdb: Fix subtle bug in re_Action"
This reverts commit ac51876200.
2010-02-07 19:19:00 +08:00
Worros ac51876200 PokerStarsTo Fpdb: Fix subtle bug in re_Action
The bet action could become multiline greedy if there was a playername starting with 'card' in the next line.

"""
danny purse: bets $0.50
cardjunkie25: calls $0.50
"""

Would match "danny purse: bets $0.50\ncard", and the rest of that line would be ignored.

Added '$' to the end of the regex to make sure that it is limited to 1 line, and wrap 'cards' as a group.
2010-02-07 19:08:23 +08:00
Worros ac458386da Add config path to test2.py display 2010-02-05 21:29:07 +08:00
Worros e0a125faf0 Merge branch 'master' of git://git.assembla.com/fpdb-sql 2010-02-05 17:32:05 +08:00
Worros ab693e3b3c test_PokerStars.py - Fix calls to HHC.
sqlcoder added config as a parameter to HHC and Hand
2010-02-05 11:51:12 +08:00
Worros fde72003f7 test2.py - Add more tests
Added most imports, and printed some formatted output for assiting diagnosis of new user installs
2010-02-05 11:44:27 +08:00
Worros afde406cc9 Merge branch 'master' of git://git.assembla.com/fpdb-eric 2010-02-05 11:01:52 +08:00
Worros b2e409ae00 Merge branch 'master' of git://git.assembla.com/fpdb-sql 2010-02-04 00:36:51 +08:00
Worros 1cefb2e857 Fix playername siteid insert
From Gerko on mailing list:
> I just did a trial. Use bulkimport for a single Pokerstars file
> switch setting and bulkimport a single Full tilt file.
> When screening the db all players in the database show the same siteId
> (2 for pokerstars)
> Or the other way if the first site was Full Tilt.

The Lambda function wasn't initialising the lambda function correctly.
2010-02-03 23:48:39 +08:00
Worros 33455cb1ac PokerStars: Fix tablename regex to allow a #
Occasionally Stars throws up a cash table that looks like

PokerStars Game #22920951206:  Triple Draw 2-7 Lowball Limit ($0.10/$0.20) - 2008/12/14 17:44:00 ET
Table 'T #252691988' 6-max Seat #2 is the button

a # was previously excluded from the regex.
2010-02-03 21:52:44 +08:00
Worros 12a9cd2e3e Fix case-sensitive MySQL tables on Linux 2010-02-01 16:06:09 +08:00
Worros c46c4b05d4 Merge branch 'master' of git://git.assembla.com/fpdb-sql 2010-02-01 16:04:17 +08:00
Worros 6179823d92 Fix test harness after fpdb_db removal 2010-02-01 14:47:04 +08:00
Worros 23e0611978 Merge branch 'master' of git://git.assembla.com/fpdb-sql 2010-01-29 17:20:57 +08:00
Worros a23d96e85d Add Carbon back in as default data.
Also add PKR
2010-01-29 17:00:37 +08:00
Worros 17bc9af88e Merge branch 'master' of git://github.com/kangaderoo/fpdb-kangaderoo
Conflicts:
	run_fpdb.py
2010-01-29 13:01:38 +08:00
Worros 50f5acbf5c Merge branch 'master' of git://git.assembla.com/fpdb-eric 2010-01-29 12:21:01 +08:00
Worros df0d019a6d Merge branch 'master' of git://git.assembla.com/free_poker_tools 2010-01-29 12:12:24 +08:00