Commit Graph
2280 Commits
Author SHA1 Message Date
Gerko de Roo bb650e81a9 import latest 2009-12-23 20:40:29 +01:00
Worros f8dccd43a3 Add ability to import Stars archive files.
PokerStars support can provide a HH archive. The format is similar but not the same as a a standard hh format as it contains an additional line "Hand #X" between each hand.

Patch adds an option -s to GuiBulkImport, which when specified will strip these lines out and continue parsing.
2009-12-24 03:10:07 +08:00
Worros 4c49d7163b [NEWIMPORT] Syntax fix 2009-12-24 03:09:13 +08:00
Worros ff88823c1a [NEWIMPORT] Fix syntax to be 2.5 compatible.
Python 2.6 enumerate() function contains a useful 'start' paramater,
apparently this did not exist in 2.5.

Patch frim Mika Bostrom
2009-12-24 03:09:13 +08:00
Worros 9650fe7a0d [NEWIMPORT] Add stubbed variable to insert 2009-12-24 03:09:13 +08:00
Worros ff0872f8de Add some code to kinda detect hand cancellation
hhc.readHandInfo(self)
hhc.readPlayerStacks(self)
hhc.compilePlayerRegexs(self)
hhc.markStreets(self)

Is the order, the first correctly failing regex is markStreets
2009-12-24 03:09:12 +08:00
Worros e18af681cb Add test hand - Hand cancelled 2009-12-24 03:09:12 +08:00
Worros f829ed937e [NEWIMPORT] Move hud call to after database commit
HUD still doesn't quite work, but getting closer - suspect hud_cache rebuild isn't happening
2009-12-24 03:09:11 +08:00
Worros 03deefc1a3 [NEWIMPORT] Fix thinko on insertPlayer
Was returning the player name instead of id in the case where the player exists in the database, but wasn't cached already

Removing some merge gunge too
2009-12-24 03:09:11 +08:00
Worros 72cf9a61ca [NEWIMPORT] Add a commit at the end of the fpdb_import cycle 2009-12-24 03:09:10 +08:00
Worros 5e4cc1c5eb [NEWIMPORT] 'correct' the type for wonWhenSeenStreet1 2009-12-24 03:09:10 +08:00
Worros a717eb437c [NEWIMPOR] Fix insert type for wonAtSD 2009-12-24 03:09:10 +08:00
Worros c1464d64ff [NEWIMPORT] Fix startCash fix 2009-12-24 03:09:09 +08:00
Worros b3d6da8339 [NEWIMPORT] Convert start stack to cents 2009-12-24 03:09:09 +08:00
Worros f527fe60a8 Fix a couple of typos 2009-12-24 03:09:08 +08:00
Worros 22a0c75adf Fix thinko in stub 2009-12-24 03:09:08 +08:00
Worros 318cd10551 [NEWIMPORT] Move HandsPlayers insert statement into SQL.py 2009-12-24 03:09:08 +08:00
Worros 0b711628f9 [NEWIMPORT] Stub remaining HandsPlayers stats 2009-12-24 03:09:04 +08:00
sqlcoder d0725f8787 reload profile after editing Prefs if no other tabs are open, otherwise suggest restart 2009-12-24 03:09:03 +08:00
Carl Gherardi e62c47f963 [NEWIMPORT] Move database prep into prepInsert 2009-12-24 03:09:03 +08:00
Carl Gherardi c8734604c7 [NEWIMPORT] Enable printInsert, disable hud pipe 2009-12-24 03:09:02 +08:00
sqlcoder 2470b9a292 add name to nodes 2009-12-24 03:09:02 +08:00
sqlcoder eaa698eb1a default guiprefs window to larger size 2009-12-24 03:09:02 +08:00
Worros 3584e6dcc1 [NEWIMPORT] Add call to HUD for auto import
Make sure the matching db_handid is recorded in the Hand object for later use
2009-12-24 03:09:00 +08:00
Worros 135a6eaf20 Add test for Stars sawShowdown.
Test currently fails in the old import code and passes on NEWIMPORT

Tests for uncalled allin bet on river, which has been erronously marked as showdown previously
2009-12-24 03:08:59 +08:00
Worros d4989fcd11 Make test file use real database.
Please note this could be destructive
2009-12-24 03:08:56 +08:00
Worros 68b4ebdb57 [NEWIMPORT] Fix sawShowdown stat 2009-12-24 03:08:55 +08:00
Mika Bostrom 1d53e32f1e Enclose dict key lookup in try-except block
Some recent changes moved the dictionary access outside try-except block
again. Widen the block enough again.
2009-12-24 03:08:55 +08:00
sqlcoder 9cade44472 move print message to log 2009-12-24 03:08:53 +08:00
Worros b3f1fc2f8c Add beginings of test for sawShowdown - unfinished.
Some sort of weird commit problem going on. Conmmitiing to work on htat
2009-12-24 03:08:52 +08:00
Worros 7212760c67 Newimport - comments for a getPosition function.
Decided that I needed some test functions before I kick on
2009-12-24 03:08:51 +08:00
Worros 3f30878bbd [NEWIMPORT] Partially fix number of hands parsed reporting 2009-12-24 03:08:51 +08:00
Eric Blade a6429957fe comment out some prints, apparently mysqlcoder and my editors do not agree well with each other on spacing. 2009-12-24 03:08:50 +08:00
Eric Blade 5913c9092a Add some basic error handling at the very beginning of startup, to deal with missing imports and such, update about box 2009-12-24 03:08:50 +08:00
Worros 117c377fff Repair recent damage to Options 2009-12-24 03:08:49 +08:00
sqlcoder 48c36c319b improve rebuild hudcache and indexes dialogs 2009-12-24 03:08:48 +08:00
Eric Blade c38efd61ef trap IOError on hud pipe write when hud closed without autoimport stopping, turn off hud 2009-12-24 03:08:48 +08:00
Eric Blade d3d8b4afbb ttime = float with us to ms resolution 2009-12-24 03:08:47 +08:00
Eric Blade b3d2a95796 fix return tuple in import_file_dict, fix text from autoimport to actually show up in autoimport window 2009-12-24 03:08:44 +08:00
grindi 7eeace5862 Merge branch 'master' of git://git.assembla.com/fpdboz
Conflicts:
	pyfpdb/PartyPokerToFpdb.py
2009-12-21 09:38:43 +03:00
Worros babf0a039a PartyPoker - No Disconnect fix
Fix from Neko on 2+2

http://forumserver.twoplustwo.com/showpost.php?p=15495528&postcount=2374

"Finally got around to checking this out. Seems great so far. I had issues with some of my party hands that were on No Disconnect protect tables but adding the No DP regex in the PartyToFpdb hand converter seems to have fixed it for me."
2009-12-21 09:21:41 +08:00
grindi 40c8d31b19 Merge branch 'master' of git://github.com/kangaderoo/fpdb-grindi 2009-12-19 18:54:19 +03:00
unknown 3a742148ef Close stat window with double-click 2009-12-19 11:02:45 +01:00
unknown 545d4f37fb Add freeroll support to Pokerstars 2009-12-19 10:57:07 +01:00
Worros d5de93da28 [NEWIMPORT] Syntax fix 2009-12-19 10:07:53 +08:00
unknown bb446ad955 Stakes added for limit games.
blinds now supported for > 1000
Freerolls supported --> buyin fixed to $0+$0
Table indentification for tourney and ring games supported --> HUD
2009-12-18 20:25:20 +01:00
Worros 9012c74db7 [NEWIMPORT] Fix syntax to be 2.5 compatible.
Python 2.6 enumerate() function contains a useful 'start' paramater,
apparently this did not exist in 2.5.

Patch frim Mika Bostrom
2009-12-18 13:33:56 +08:00
Worros a2947c8707 [NEWIMPORT] Add stubbed variable to insert 2009-12-18 10:28:28 +08:00
grindi 28345009e1 Merge branch 'master' of git://git.assembla.com/fpdboz 2009-12-17 15:54:35 +03:00
Worros ba8f61d14a Add ability to import Stars archive files.
PokerStars support can provide a HH archive. The format is similar but not the same as a a standard hh format as it contains an additional line "Hand #X" between each hand.

Patch adds an option -s to GuiBulkImport, which when specified will strip these lines out and continue parsing.
2009-12-17 18:50:40 +08:00