Commit Graph
2505 Commits
Author SHA1 Message Date
Worros fde2f1f710 Fix Charset import got Grapher 2010-01-24 13:30:02 +01:00
Mika Bostrom cc3811b8aa Add missing import
GuiPlayerStats.py didn't import the new Charset module but tried to use
the functions.
2010-01-24 13:24:26 +01:00
Gerko de Roo 7737720aa8 Conflicts:
pyfpdb/Charset.py
2010-01-23 16:35:57 +01:00
Mika Bostrom 3a03bc51a2 Some character set improvements
The strings (names) as stored in database should always be UTF-8;
whatever the display locale is, we then need to convert from the storage
encoding to session encoding. When making database queries with players
names in them, the names must be reconverted to UTF-8.
2010-01-23 16:34:24 +01:00
Gerko de Roo 53153bd00a Fixed limit and freeroll support for Partypoker tourney's 2010-01-23 16:32:32 +01:00
Gerko de Roo 6cb956c5fd HUD fix for tournaments. Table name storage. 2010-01-23 11:17:14 +01:00
Gerko de Roo 9100ba814c All game selection boxes default enabled 2010-01-23 10:01:36 +01:00
Gerko de Roo 9d1ae8cfea Merge branch 'master' of git@github.com:kangaderoo/fpdb-kangaderoo.git 2010-01-23 09:52:26 +01:00
Gerko de Roo cd4513adf9 Doulbe click for closing stat window added 2010-01-23 09:50:40 +01:00
Gerko de Roo 562f21f548 Added freeroll support for Pokerstars 2010-01-23 09:46:09 +01:00
Gerko de Roo 6fa3d693d9 game selector for graphs added.
exception caught for games selector for player stats
2010-01-23 09:46:01 +01:00
Gerko de Roo 3cd51ca990 Added freeroll support for Pokerstars 2010-01-22 23:42:44 +01:00
Gerko de Roo 261daf6003 game selector for graphs added.
exception caught for games selector for player stats
2010-01-22 18:36:21 +01:00
Gerko de Roo fdc5a0a635 Added close on double click for a stat window
Just in case you don't have a mouse with middle button
2010-01-22 15:38:33 +01:00
Gerko de Roo 4ada389f86 Changed the card positions and mucked card
positions to relative positions.
2010-01-21 21:14:49 +01:00
Gerko de Roo eb6e60f578 New 'master' clone of git://git.assembla.com/fpdboz.git 2010-01-21 19:15:25 +01:00
unknown ea423f6b2c added a game selector to the player stats. 2010-01-21 14:14:24 +08:00
Worros 4187561e66 Whitespace fixes to Card.py 2010-01-21 14:12:17 +08:00
Gerko de Roo ef4f5289bb Solved some merge issues --> Cards.py
Issues Pokerstars when playing heads-up on ring games,
   being both on button and small blind now supported
   !!if not solved the winnings of the (button, small blind) is stored as rake!!
Post both small and big blind when re-entering ring games solved
2010-01-21 14:07:46 +08:00
Mika Bostrom cd71778975 Fix name display in HUD popup
The names are stored in UTF-8, so simply converting the name from UTF-8
to Configuration.LOCALE_ENCODING before putting the string in tooltip is
enough. Neat.
2010-01-21 13:56:50 +08:00
sqlcoder 41877097c9 fix twostartcards to handle 22 and unknowns properly 2010-01-21 13:49:45 +08:00
Worros bd3e14e6de Merge branch 'stats'
Conflicts:
	pyfpdb/DerivedStats.py
	pyfpdb/test_PokerStars.py
2010-01-19 23:56:52 +08:00
Worros 3f0dfd2b26 Fix enumerate() 2010-01-16 13:55:01 +08:00
Worros 776405982b Quick fix for hud 2010-01-15 21:24:37 +08:00
Worros 5c0d695055 [NEWIMPORT] Almost all remaining stats
All conversions from Grigorij

street0_3BChance
street0_3BDone
street0_4BChance
street0_4BDone
stealAttemptChance
stealAttempted
foldBbToStealChance
foldBbToStealChance
foldSbToStealChance
foldedSbToSteal
foldedBbToSteal

3Bet, 4Bet in Stud does appear to work.

Unable to test steal in Stud games, all example hands in micros do not have a chance (I believe)
2010-01-15 20:07:50 +08:00
Worros 150b1891d6 [NEWIMPORT] setPositions(), fix aggr function
PFR now actually works
2010-01-15 20:04:59 +08:00
Worros 95aa993903 [NEWIMPORT] setPositions(), fix aggr function
PFR now actually works
2010-01-15 20:03:26 +08:00
Worros ecf1c6b878 [NEWIMPORT] Almost all remaining stats
All conversions from Grigorij

street0_3BChance
street0_3BDone
street0_4BChance
street0_4BDone
stealAttemptChance
stealAttempted
foldBbToStealChance
foldBbToStealChance
foldSbToStealChance
foldedSbToSteal
foldedBbToSteal

3Bet, 4Bet in Stud does appear to work.

Unable to test steal in Stud games, all example hands in micros do not have a chance (I believe)
2010-01-15 19:42:24 +08:00
Worros 700a68bcc8 [NEWIMPORT] calcCheckCallRaise()
Modify function from Grigorij to calculate check/call
2010-01-15 18:29:16 +08:00
Worros bad744fd80 [NEWIMPORT] setPositions(), fix aggr function
PFR now actually works
2010-01-15 13:50:46 +08:00
sqlcoder 62935664c8 set stats color to fgcolor 2010-01-02 11:05:58 +08:00
sqlcoder 8cb73b822c set stats color to fgcolor 2010-01-01 22:57:25 +00:00
sqlcoder 378ad93f78 Merge branch 'master' of git://git.assembla.com/fpdboz 2010-01-01 16:27:01 +00:00
Worros cd88de7c7e [NEWIMPORT] Copy in Alchemy files from Grigorij's alchemy branch 2009-12-30 15:44:48 +08:00
Mika Bostrom 478b82587d Store names as UTF-8
The names should be always in UTF-8 encoding. At least for PostgreSQL
the encdoding of the database comes from the time of running 'initdb'
(which is different from 'createdb') and if the encoding was selected or
set to something else at that time, the following error will occur:

  File ".../pyfpdb/Database.py", line 1630, in <lambda>
    self.pcache = LambdaDict(lambda  key:self.insertPlayer(key, siteid))
  File ".../pyfpdb/Database.py", line 1661, in insertPlayer
    c.execute (q, (site_id, _name))
  File "/usr/lib/python2.5/encodings/iso8859_15.py", line 12, in encode
    return codecs.charmap_encode(input,errors,encoding_table)
UnicodeEncodeError: 'charmap' codec can't encode character u'\u2122' in
position 10: character maps to <undefined>

This happens because 'name' is a regular string as opposed to a valid
unicode object. By forcing the string to unicode and encoding it in
UTF-8 the error goes away. In my case the database encoding was
ISO-8859-15 (latin9) but any other "wrong" encoding would trigger the
same problem.

This is a relatively common problem in python.
2009-12-29 13:05:03 +08:00
Worros 4800f2515f Update HUD_config.xml
- Change default Holdem stat window layout to 3x3, add some more colouring
- Fix tab breakage from Gerko.
2009-12-28 22:09:06 +08:00
Worros c7aca0a32e Update HUD_config.xml
- Change default Holdem stat window layout to 3x3, add some more colouring
- Fix tab breakage from Gerko.
2009-12-28 22:03:26 +08:00
Gerko de Roo 1cf464283f Hmm forgot the color reset to default.
There must be a better methode
2009-12-28 10:41:22 +08:00
Gerko de Roo 6efccd9067 Hmm forgot the color reset to default.
There must be a better methode
2009-12-28 10:41:04 +08:00
Worros 3f3d8ac54a Fix tab spacing from Gerkos recent patch 2009-12-28 10:22:44 +08:00
Worros 805d35c3fd Fix tab spacing from Gerkos recent patch 2009-12-28 10:21:31 +08:00
Gerko de Roo eb226c0026 Added color highlight for stats window.
high and low threshold and color can be set in the xml file
2009-12-28 10:17:01 +08:00
Gerko de Roo 2cd57e826d Added color highlight for stats window.
high and low threshold and color can be set in the xml file
2009-12-28 10:16:48 +08:00
Gerko de Roo 3553bdaf71 search string for table detect changed 2009-12-28 10:14:04 +08:00
Gerko de Roo f66b8307d3 search string for table detect changed 2009-12-28 10:04:33 +08:00
Worros 0e318e6d9f [NEWIMPORT] Commit currnetly failing test - sawShowdown
It would appear that all-in pre-flop doesn't flag sawShowdown.

Also modified the query to select street0Aggr, as that appears to be wrong at the moment
2009-12-26 17:18:05 +08:00
Worros 9f2f015fd0 New test for all-in preflop.
Test still fails - need to sort out an issue with database placement
2009-12-26 12:25:05 +08:00
Worros 1245a0cab3 New test file - All-in pre flop 2009-12-26 12:24:41 +08:00
Worros 624ab07f85 New test for all-in preflop.
Test still fails - need to sort out an issue with database placement
2009-12-26 12:23:20 +08:00
Worros 1bcb6736eb New test file - All-in pre flop 2009-12-26 10:07:33 +08:00