Commit Graph
100 Commits
Author SHA1 Message Date
Worros 6d0ec5d831 [NEWIMPORT] Add playersAtStreetX to insert 2009-10-08 18:13:13 +08:00
Worros cf6c3c8ad0 [NEWIMPOR] Fix playersVpi from last patch
Oops - forgot to add the argument
2009-10-08 18:07:54 +08:00
Worros 31f48c4932 [NEWIMPORT] Calculate playersAtStreetX
Untested code.

Still missing playersAtShowdown, haven't looked to see if hand.actionStreets contains showdown.
2009-10-08 18:01:49 +08:00
Worros 024618235f Clean up variables in DerivedStats
Doesn't look like they are going to be used like that
2009-10-07 14:15:12 +08:00
Worros fdef5b12d9 Add playersVpi to NEWIMPORT code
Untested at the moment, moved the code from Hand.py into DerivedStats.
2009-10-06 18:30:52 +08:00
Worros 94af5b1ea8 Fix order bug for seats in NEWIMPORT 2009-10-06 12:08:20 +08:00
Worros 230eb32615 Merge branch 'master' of git://git.assembla.com/fpdb-sql 2009-10-06 11:11:58 +08:00
Worros d36d8f4249 From 7d5a3e81a5d41298ab1fa4d57bef25862a167350 Mon Sep 17 00:00:00 2001
From: lucktard <ntogden@gmail.com>
Date: Wed, 30 Sep 2009 12:16:06 -0500
Subject: [PATCH] Detect and import capped 6 max hands on FullTilt

and

From b35d23aba38935406cf1522ae07a49cd441318b3 Mon Sep 17 00:00:00 2001
From: lucktard <ntogden@gmail.com>
Date: Wed, 30 Sep 2009 12:21:34 -0500
Subject: [PATCH] Detect deep 6 max tables for HUD on FT
2009-10-01 10:49:59 +08:00
Worros a20bfe0921 Merge branch 'master' of git://git.assembla.com/fpdb-sql 2009-09-23 13:22:45 +08:00
Worros 4e361e383c Merge branch 'master' of git://repo.or.cz/fpbd-bostik 2009-09-23 13:22:35 +08:00
Worros 89f86dd32b Merge branch 'master' of git://git.assembla.com/fpdb-eric 2009-09-22 12:35:11 +08:00
Worros 2cea6f01b9 Merge branch 'master' of git://repo.or.cz/fpbd-bostik 2009-09-19 19:25:01 +08:00
Worros 577beed942 Prep new function - commented out for the moment 2009-09-19 19:24:07 +08:00
Worros 9e30336acc Remove BOM from AbsoluteToPoker.py 2009-09-06 22:40:27 +08:00
Worros 4f98b29b26 Merge branch 'master' of git://git.assembla.com/fpt_fpdb
Conflicts:
	pyfpdb/Database.py
2009-09-04 12:45:49 +08:00
Worros b52ceb3f90 Merge branch 'master' of git://git.assembla.com/fpdb-eric 2009-09-03 21:37:57 +08:00
Worros c350d62089 Fix typos 2009-09-03 15:44:28 +08:00
Worros b4ccc7f45c Add guards around numpy in GuiSessionViewer for windows users 2009-09-03 11:29:30 +08:00
Worros c80bb3ac3f sys.exit() in Hand.addShownCards() has to be wrong 2009-09-01 18:35:40 +08:00
Worros 0877e428ef Merge branch 'master' of git://github.com/grindi/fpdb-grindi 2009-08-18 18:46:15 +08:00
Worros 4cc08763fc Add query getPlayerIdBySite 2009-08-18 18:44:47 +08:00
Worros 6648036399 Merge branch 'master' of git://repo.or.cz/fpbd-bostik 2009-08-15 23:38:54 +08:00
Worros dede86521a Merge branch 'master' of git://github.com/grindi/fpdb-grindi 2009-08-15 19:06:39 +08:00
Worros ecad66f7d8 Merge branch 'master' of git://repo.or.cz/fpbd-bostik 2009-08-15 19:06:18 +08:00
Worros 116141b833 Merge branch 'master' of git://git.assembla.com/fpdb-eric
Conflicts:
	pyfpdb/HandHistoryConverter.py
2009-08-12 22:53:49 +08:00
Worros 0baabb0368 Merge branch 'master' of git://github.com/grindi/fpdb-grindi
Conflicts:
	pyfpdb/HandHistoryConverter.py
2009-08-12 22:51:49 +08:00
Worros cfd7b40ab6 Merge branch 'master' of git://repo.or.cz/fpbd-bostik
Conflicts:
	pyfpdb/HandHistoryConverter.py
2009-08-12 22:49:18 +08:00
Worros 5a4bcf3997 Add streetXPot and showdownPot to hhc insert
totalPot not actually calcuated yet, and valued need to be converted from Decimal() to cents
2009-08-12 22:21:54 +08:00
Worros 483334b899 Fix Absolute plugin from recent change 2009-08-12 18:34:17 +08:00
Worros 6b4d065f9e Merge branch 'master' of git://github.com/grindi/fpdb-grindi 2009-08-12 00:05:21 +08:00
Worros 836cba6594 Merge branch 'master' of git://github.com/grindi/fpdb-grindi 2009-08-11 20:56:43 +08:00
Worros 24e5c2252d Fix inserting into Gametypes 2009-08-11 20:52:07 +08:00
Worros d6529ab42f Import Hand.insert() work
storeHand updated, almost works, just violating some NOT NULL contraints
2009-08-09 01:59:44 +08:00
Worros a24fe93612 Merge branch 'master' of git://github.com/grindi/fpdb-grindi 2009-08-08 21:25:57 +08:00
Worros a70bd9742d Add Gametype insert
Almost done, need to convert 0.25 to 25 for the database - Lookup?
2009-08-08 16:43:52 +08:00
Worros 5550166f37 Start of storeHand from HHC code
Currently cant actually insert as we need the fk gametypeid
2009-08-08 16:15:36 +08:00
Worros 679393e78d Minor change to insertPlayer() 2009-08-08 14:59:23 +08:00
Worros cbc010155d Add commented out sqlite db option to example config 2009-08-08 13:58:56 +08:00
Worros 4ef4d22c94 Add back in sqlcoders changes for sqlite - fix Grapher 2009-08-08 13:56:53 +08:00
Worros 1dcecf4ae3 Merge branch 'master' of git://git.assembla.com/fpdb-eric
Conflicts:
	pyfpdb/fpdb_simple.py
2009-08-08 13:10:25 +08:00
Worros 470d34c65c Merge branch 'master' of git://github.com/grindi/fpdb-grindi 2009-08-08 13:06:41 +08:00
Worros 150d8f7160 Revert "Make sure the db connection is encoded using utf8"
This reverts commit 2c9982cfff.
2009-08-08 13:02:29 +08:00
Worros 08a70b75f2 Fix insertPlayer so that it works again 2009-08-08 12:33:25 +08:00
Worros 56ea7c6eab Add incomplete version of PartyPoker plugin 2009-08-06 21:14:52 +08:00
Worros d043368c88 Prep for PartyPoker plugin add 2009-08-06 20:54:39 +08:00
Worros b75583c784 Add Absolute to HUD config example 2009-08-06 11:41:51 +08:00
Worros a37adde67e Catch up to Eric - fix markStreets regex 2009-08-06 11:30:21 +08:00
Worros c35132463c Add absolute hhc to example file 2009-08-06 10:59:44 +08:00
Worros 5f5825e30b Add additional siteids to default data insert 2009-08-06 10:18:48 +08:00
Worros 2a3a5f0601 Merge branch 'master' of git://git.assembla.com/free_poker_tools
Conflicts:
	pyfpdb/Database.py
2009-08-06 09:20:10 +08:00
Worros 683156c152 Merge branch 'master' of git://git.assembla.com/fpdb-eric 2009-08-06 09:09:54 +08:00
Worros da9900caef Merge branch 'master' of git://git.assembla.com/fpdb-eric 2009-08-05 08:30:56 +08:00
Worros 2c9982cfff Make sure the db connection is encoded using utf8
This has an issue with my current code, but may cause other issues.

Keeping to a 1 line change incase we need to revert at some point in future.
2009-08-04 18:30:39 +08:00
Worros 5e66e48b75 Some comments and cleanup to the recent Player insert code 2009-08-04 18:22:29 +08:00
Worros 7050df10c2 Merge branch 'master' of git://git.assembla.com/free_poker_tools 2009-08-04 08:34:21 +08:00
Worros 47595ecfef Merge branch 'master' of git://git.assembla.com/fpdb-sql 2009-08-03 09:35:37 +08:00
Worros 6781d97539 Remove debug message 2009-08-03 09:35:22 +08:00
Worros ff2cca361c New insert player function for HHC import
Added getSqlPlayerIDs to Database.py - returns a hash {playername:sqlid}

Function uses a caching hash in Database.py to reduce the number of round trips to the database needed just to fetch the player ids for later inserts.

Need to do a performance comparison on a larger import.
2009-08-02 12:19:33 +08:00
Worros 40a0fe428b Variable name change - hhc is better imho 2009-08-02 11:03:35 +08:00
Worros 129d09796e Fix HUD_config.xml.example to have correct stat names 2009-08-02 10:19:45 +08:00
Worros 68ac5ff554 Q&D hack to fix FTP file reads after update
Contributed by grindi on 2+2 http://forumserver.twoplustwo.com/showpost.php?p=12156328&postcount=166

Removes u'\xff\xfe' from the end of file if they exist.
2009-07-30 12:13:45 +08:00
Worros 73e6666cbc Add auto folder creation to HHC
Contributed by grindi on 2+2 http://forumserver.twoplustwo.com/showpost.php?p=12156328&postcount=1666

Creates the sub folders of hhArchiveBase for placing the converted files in.
2009-07-30 11:40:16 +08:00
Worros d546557ef7 Make new db insert code "usable"
Next step, make the players insert. Function doesn't exist at the moment and crashes when NEWIMPROT set to true
2009-07-19 15:45:18 +08:00
Worros e113a1e692 Merge branch 'master' of git://git.assembla.com/fpdb-sql 2009-07-19 11:29:18 +08:00
Worros 36f4da0adf Merge branch 'master' of git://git.assembla.com/free_poker_tools 2009-07-19 11:28:59 +08:00
Worros 8386dd594e Add empty function prepInsert 2009-07-18 19:02:55 +08:00
Worros 34932c14ee Add index parameter to Plugins
Change constructor to HHC to accept an index arg, so that file reads can seek
2009-07-17 17:45:22 +08:00
Worros 61b0b8f4fe Prep work for inserting directly from HHC 2009-07-17 17:16:06 +08:00
Worros 152f16c7a0 Make euros print as $ in writeHand.
fpdb_simple avoidance at the moment.
2009-07-16 13:54:41 +08:00
Worros 0d5af4c974 Make Win2day client use updated readHeroCards api 2009-07-16 12:58:39 +08:00
Worros d8df3ea11a Possible fix for 2.6 versions of Matplotlib
Long standing issue with multiple plots being added to a single canvas.

Calling canvas.draw() appears to be the "correct" way to do this in pythin 2.6

Need someone to test if this still works in python 2.5
2009-07-16 11:46:52 +08:00
Worros b92feee021 Revert Matts change for sqlite until fixed.
Previous syntax failed to insert the required line into TourneyTypes
2009-07-15 23:58:34 +08:00
Worros ec9ce544ca Fix if database hasn't been created yet.
Still broken on my setup, but at least fpdb now starts
2009-07-15 23:32:17 +08:00
Worros 83f21e822d Merge branch 'master' of git://git.assembla.com/mctfpdb
Conflicts:
	pyfpdb/fpdb_db.py
2009-07-15 23:09:25 +08:00
Worros cd2ec0c74f Merge branch 'master' of git://git.assembla.com/free_poker_tools 2009-07-15 22:52:09 +08:00
Worros 521e17f856 Add some boilerplate stuff for Boss Media/Win2day plugin 2009-07-15 12:22:46 +08:00
Worros 79d0ba35b0 Initial commit of BossMedia importer.
Contributed by Thomas Wigele (twigele gmail com - star-fox on sourceforge)

Sample HH - http://www.pastebin.ca/1490652
2009-07-14 06:39:49 +08:00
Worros 7683334e36 Merge branch 'master' of git://git.assembla.com/free_poker_tools 2009-07-14 05:00:48 +08:00
Worros c3d463b689 Merge branch 'master' of git://git.assembla.com/free_poker_tools 2009-07-07 21:28:54 +08:00
Worros 89b410a766 Merge branch 'master' of git://git.assembla.com/free_poker_tools 2009-07-04 14:51:55 +08:00
Worros 7351749b7a Merge branch 'master' of git://git.assembla.com/fpdb-sql
Conflicts:
	pyfpdb/Hand.py
2009-07-01 09:21:21 +08:00
Worros 3c438a9298 Make site selection behave like other options 2009-06-30 18:32:58 +08:00
Worros 5611f115cd Remove DEBUG line that wasn't supposed to make the last commit 2009-06-30 18:32:30 +08:00
Worros 22ff98d7c9 Remove passthrough section from import_file_dict 2009-06-20 14:02:03 +08:00
Worros 706ce46a9f Boardcards for Hands table in new importer 2009-06-20 07:58:53 +08:00
Worros d00031edf7 Add get_last_insert_id() to Database API 2009-06-20 06:22:57 +08:00
Worros 864e37ddc8 Remove empty file 2009-06-20 05:38:33 +08:00
Worros 2569eeddc8 Remve legacy storeHudCache function 2009-06-20 05:37:30 +08:00
Worros 2b3e507a3c Factor out some common code 2009-06-20 05:33:33 +08:00
Worros f1921bebde Move functions from fpdb_save_to_db into Database.py
Doesn't actually do much cleanup.

Intend on moving all db functions into Database.py and fpdb_db.py and
providing and API, the functionality of fpdb_simple et all to shift into
the HHC
2009-06-20 04:15:52 +08:00
Worros 966fba2165 Fix parameter being passed to Sql __init__ db_server not db_backend 2009-06-20 01:17:06 +08:00
Worros a47ff7fb9b Fix case sensitivity in test for Hands table before dropping 2009-06-20 00:58:41 +08:00
Worros ccd2112c8a Merge branch 'master' of git://git.assembla.com/fpdb-sql 2009-06-20 00:41:24 +08:00
Worros e66c73ca14 Merge branch 'master' of git://git.assembla.com/free_poker_tools 2009-06-20 00:41:13 +08:00
Worros d247b32b1b Merge branch 'master' of git://git.assembla.com/free_poker_tools 2009-06-17 10:18:31 +08:00
Worros 4d2aecc17b Merge branch 'master' of git://git.assembla.com/mctfpdb 2009-06-17 10:18:13 +08:00
Worros a9df7d09c1 Merge branch 'master' of git://git.assembla.com/free_poker_tools 2009-06-13 13:49:49 +08:00
Worros ed9f02b113 Revert "pass all settings through so that a new one can be used to skip updating hudcache (not used yet)"
This reverts commit b935a5ad67.
2009-06-10 20:48:33 +08:00
Worros e212bbd751 Remove unused file 2009-06-10 18:19:49 +08:00
Worros 8a55b2ebd9 Remove merge line 2009-06-09 23:10:11 +08:00