Commit Graph
100 Commits
Author SHA1 Message Date
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
Worros ed1d9cd229 Fix tests 2009-06-09 23:08:18 +08:00
Worros 1d6aed3250 Fix datetime.strptime v time.strptime issue 2009-06-09 22:53:09 +08:00
Worros c3d2c5a2be Merge branch 'master' of git://git.assembla.com/free_poker_tools
Conflicts:

	pyfpdb/Database.py
	pyfpdb/SQL.py
	pyfpdb/fpdb_db.py
	pyfpdb/fpdb_save_to_db.py

Also fix datetime issue with Everleaf
2009-06-09 22:48:48 +08:00
Worros 8e1404032b Fix last patch 2009-06-08 22:13:42 +08:00
Worros d8dffb193f Merge branch 'master' of git://git.assembla.com/mctfpdb
Conflicts:

	pyfpdb/fpdb.py
2009-06-08 19:20:01 +08:00
Worros f1b887502c Merge branch 'master' of git://git.assembla.com/fpdb-sql
Conflicts:

	pyfpdb/fpdb_db.py
2009-06-08 19:18:58 +08:00
Worros 4f555e2d8f Hand.insert() update - low hanging fruit 2009-06-08 18:19:55 +08:00
Worros 56f2112403 Add a few temporary comments 2009-06-06 19:26:33 +08:00
Worros a9055049fe Fix HUD query under linux.
Case sensitive
2009-06-05 23:13:41 +08:00
Worros 9091efa230 Merge branch 'master' of git://git.assembla.com/fpdb-sql 2009-06-05 09:11:25 +08:00
Worros 44cb8efb2c Add reminder for id caching 2009-06-01 22:21:40 +08:00
Worros 3e49e87842 Begin moving query functions into fpdb_db function
No idea whether the code actually works
2009-06-01 20:53:42 +08:00
Worros a261517175 Add additional siteids to db, move player select function 2009-06-01 17:14:31 +08:00
Worros 21e7e010bd Merge branch 'master' of git://git.assembla.com/fpdb-sql 2009-06-01 07:51:04 +08:00
Worros 0c0832b9d3 Bump db version number 2009-05-31 02:56:08 +08:00
Worros 3b72a334a1 Merge branch 'master' of git://git.assembla.com/fpdb-sql 2009-05-29 10:35:02 +08:00
Worros a9dac26381 Merge branch 'master' of git://git.assembla.com/fpdb-sql 2009-05-28 22:32:34 +08:00
Worros 3892b3789d Session breakdown Proof of Concept
Only prints some of the session breakdown to stdout at the moment,
otherwise is a copy of PlayerStats with a bunch of stuff commented out.

Looks like:

DEBUG: len(times) 337
DEBUG: len(diffs) 336
DEBUG: len(index[0]) 2
DEBUG: index [54 88]
DEBUG: index[0][0] 54
Hands in session    0:   54  Start: 22/03/2009 07:04 End: 22/03/2009
07:49 Total: 2669
Hands in session    1:   33  Start: 24/03/2009 17:10 End: 24/03/2009
17:35 Total: 1482

I think the Total number has an index incorrect at the moment.
2009-05-26 16:10:27 +08:00
Worros 962ce03fea Fix storeHudCache callers 2009-05-25 09:31:36 +08:00
Worros ab98965b77 Merge branch 'master' of git://git.assembla.com/fpdb-sql 2009-05-24 19:15:52 +08:00
Worros 539fdcb070 Merge branch 'master' of git://git.assembla.com/fpdb-sql
Conflicts:

	pyfpdb/Card.py
2009-05-22 09:23:10 +08:00
Worros dc8affb8c3 Quick comment add before checking out 0.11 2009-05-21 23:02:50 +08:00
Worros 4819fc28e5 Fix omaha hudCache update 2009-05-21 22:14:49 +08:00
Worros a5884ff7ae Fix createHandsActionTable 2009-05-17 12:41:47 +08:00
Worros 2c01a1f911 Merge branch 'master' of git://git.assembla.com/fpdb-sql 2009-05-17 12:09:55 +08:00
Worros e2d8a58620 Merge branch 'master' of git://git.assembla.com/fpdb-sql 2009-05-09 10:34:46 +09:30
Worros e8f5aabe83 Merge branch 'master' of git://git.assembla.com/fpdb-sql 2009-05-05 11:41:10 +09:30