3ac124903f
Reads rank and winnings from pokerstars hand history
2011-04-11 23:10:47 +02:00
Steffen Schaumburg
28dead2905
Merge branch 'next'
...
Conflicts:
pyfpdb/Configuration.py
pyfpdb/locale/de/LC_MESSAGES/fpdb.mo
pyfpdb/locale/es/LC_MESSAGES/fpdb.mo
pyfpdb/locale/fpdb-de_DE.po
pyfpdb/locale/fpdb-en_GB.pot
pyfpdb/locale/fpdb-es_ES.po
pyfpdb/locale/fpdb-fr_FR.po
pyfpdb/locale/fpdb-hu_HU.po
pyfpdb/locale/fpdb-it_IT.po
pyfpdb/locale/fpdb-pl_PL.po
pyfpdb/locale/fpdb-pt_BR.po
pyfpdb/locale/fpdb-ru_RU.po
pyfpdb/locale/fpdb-zh_CN.po
pyfpdb/locale/fr/LC_MESSAGES/fpdb.mo
pyfpdb/locale/hu/LC_MESSAGES/fpdb.mo
pyfpdb/locale/it/LC_MESSAGES/fpdb.mo
pyfpdb/locale/pl/LC_MESSAGES/fpdb.mo
pyfpdb/locale/pt/LC_MESSAGES/fpdb.mo
pyfpdb/locale/ru/LC_MESSAGES/fpdb.mo
pyfpdb/locale/zh/LC_MESSAGES/fpdb.mo
2011-04-10 19:14:20 +02:00
Steffen Schaumburg
e96e566bc6
Merge git://github.com/ChazDazzle/fpdb-chaz into chaz
2011-04-10 18:38:59 +02:00
Chaz Littlejohn
27446659f9
Fixed the loop in storeHudCache so that it only changes boolean to 1/0 when its True/False
2011-04-10 16:36:30 +00:00
Steffen Schaumburg
b1814cda26
forgot to raise DB version
2011-04-09 19:34:16 +02:00
Chaz Littlejohn
710fc924bf
This fix is needed because psycopg2 module will not implicitly convert
...
true/false to 1/0 when aggregating numeric data - this becomes a
problem when true/false fields are aggregated in the caches e.g. VPIP
True in 3 hands will not be implicitly converted to aggregate 3 in the
cache
2011-04-09 03:03:20 +00:00
Chaz Littlejohn
e03d08c0be
Fixed small conflict in debug message when recreating tables
2011-04-08 21:15:35 +00:00
Steffen Schaumburg
398a2609ef
more string cleaning
2011-04-08 13:39:56 +02:00
Steffen Schaumburg
e5cdf881a7
make database.py executable
2011-04-08 11:13:29 +02:00
Steffen Schaumburg
f3b4bb6fd0
fix different shortcuts for stop AI, string unification, remove leading/trailing whitespace
2011-04-08 11:12:38 +02:00
Steffen Schaumburg
ecb9c35522
Merge branch 'master' into next
2011-04-07 08:34:51 +02:00
Steffen Schaumburg
ed4a5468aa
add a missing pass that prevented it from starting...
2011-04-07 06:28:49 +02:00
Steffen Schaumburg
91b597e2ea
fix for IDs of sites and actions - thanks to Jon Cooper!
2011-04-07 06:03:01 +02:00
Steffen Schaumburg
24e23b6b4f
string fix, updated german translation and l10n files
2011-04-07 06:00:16 +02:00
Steffen Schaumburg
954ec98e9d
String consistency improvements, and removal of some excessive prints
2011-04-07 05:57:19 +02:00
Steffen Schaumburg
93e5233b00
add site preferences dialogue
2011-04-06 22:43:14 +02:00
Chaz Littlejohn
b7b93408b0
Commented out the printing in recreate_tables. Should think about undertaking an effort to remove all printing since everything important is logged anyways
2011-04-06 03:43:56 +00:00
Chaz Littlejohn
d7ed15bcfe
Added the column 'showed' to handsplayers which flags whether or not a player showed his or her hand. If false and 'sawSD' is true then they mucked. If true and 'sawSD' is false, then they showed outside of a showdown (site dependent). Also fixed up readShownCards in FTP's hhc so it recorded mucked and showed correctly.
2011-04-05 02:41:53 +00:00
Steffen Schaumburg
84961625e4
reduce translatable words by about 40
2011-04-05 02:08:28 +02:00
Chaz Littlejohn
c518c482ac
Fixed several errors in the new storeHudCache which were preventing the data from being imported in full
2011-04-04 06:32:57 +00:00
Chaz Littlejohn
d98a28ea0a
Added support for board cards in FTP run it twice (RIT) hands. Hands continues to store the standard board for the hand, while run it twice board cards dealt after the all in are stored in the new Boards table. Designed to allow for more than 2 boards if a hand history allows it. Can be enabled for other sites by adding regex to detect multiple FLOP|TURN|RIVER deals in hhc.markStreets, and by updating hhc.readCommunityCards to save RIT streets and set hand.runItTimes with the number of deals. The Hands table now includes a 'runIt' BOOL indicating if a hands was run multiple times and board inserts are done in the storeHand method.
2011-04-04 04:50:01 +00:00
Chaz Littlejohn
f55cd5569d
Added methods for storing the filename and import statistics in a new 'Files' table which links with the Hands table via Hands.fileId. Extended support for storing mixed game information for Full Tilt Poker coming from the filename, and updated mixed game dictionaries for PokerStars. Added a field in GameTypes to track this mixed game variable entitled 'mix' which takes on the string value of 'none' if not a mix game hand.
2011-04-02 23:56:52 +00:00
Chaz Littlejohn
6954ab1b62
changed the key in the hands stats dict from 'gameTypeId' back to 'gametypeId'
2011-03-30 03:49:13 +00:00
Chaz Littlejohn
b00c30cbbf
Re-did patch to fix import when no hero is defined
2011-03-29 14:18:00 +00:00
Chaz Littlejohn
dc839c9cae
Merge branch 'sorrow' into chazdazzle
2011-03-29 14:04:59 +00:00
Worros
de9c65e3ea
Database: Fix sessionCache when no hero exists
2011-03-29 17:13:31 +08:00
Chaz Littlejohn
38fbae957a
charset needs to be set to 'utf8' for the MySQL connection to store unicode strings correctly
2011-03-29 06:10:07 +00:00
Chaz Littlejohn
a87f43f933
Updated the import process for Draw hands so that cards, along with additional draws can now be stored. HandsPlayers now includes 20 card fields to accomodate up to 4 five card hands for each player. The regex for the 'stands pat' action was also improved so that hero cards from those streets could be taken from that line of text
2011-03-24 06:00:10 +00:00
Chaz Littlejohn
3e9dacf900
Added a rebuild_sessionscache method for creating the SC table from hands in the database
2011-03-23 19:27:56 +00:00
Chaz Littlejohn
8c4d5d42b4
Added printtest back in and fixed a couple of SessionsCache bugs
2011-03-23 19:27:55 +00:00
Chaz Littlejohn
3ac088b748
Fixed a timezone issue in storeSessionsCache
2011-03-23 19:27:55 +00:00
Chaz Littlejohn
dd6ce46487
Added methods to create utilize a lock table for managing access to the database during a multi-threaded import. Currently, only MySQL is supported
2011-03-23 19:27:55 +00:00
Chaz Littlejohn
09f1616e87
fixed a small bug in storeHudCache
2011-03-23 19:27:55 +00:00
Chaz Littlejohn
66e1cc3704
This commit includes a set of updates which:
...
* implement the new SessionsCache table
- The SessionsCache table can be used to track overall or game sepecific sessions
- The totalProfit field is summed by gameTypeId for cash games allowing for multiple currencies
- Tournament profit (cashes - buy-ins) are also recorded in totalProfit and its grouped by tourneyId
* change the sequence and methodology surrounding the import of hands
- fpdb_import.py implements a unique Hand.py method for each table
- Hands SessionCache and HudCache records themselves are 'cached' to allow for 'bulk insert' at EOF
- import is reorganized to allow for efficient locking in multiple connection environments
* changes the name of the index created by addTPlayersIndex (so that it is unique) to accommodate a bug in MySQL 5.5
TODO
* A 'rebuild_sessionsCache' method is still required
* Further commits are expected to fix bugs created during the porting of this code
2011-03-23 19:27:55 +00:00
gimick
68fe4ee9a2
Merge branch 'master' of git://git.assembla.com/fpdb
2011-03-20 18:05:15 +00:00
gimick
b0ea975b25
HUD: make update_hudcache data INT not BOOL ( #93 ) & rushaux BOOL fix
2011-03-20 17:57:07 +00:00
Steffen Schaumburg
5483e01693
Merge branch 'master' of git://github.com/rwielinga/fpdb into wielinga
2011-03-19 01:59:06 +01:00
Robert Wielinga
407c93349c
Added required files for PacificPoker HHC
2011-03-12 13:59:22 +01:00
Worros
72f6a1ce6a
Database: Reformat a some tournament results update code
...
Reformat to make life easier when debugging
2011-03-11 06:40:10 +01:00
Steffen Schaumburg
8a519699b5
update copyright year
2011-03-10 06:16:31 +01:00
Steffen Schaumburg
5a0f2946a4
fix many strings that weren't being picked up by gettext's parser
2011-03-10 04:15:53 +01:00
Steffen Schaumburg
c03d050337
string consistency fixes
2011-03-02 07:03:09 +01:00
Scott Wolchok
a6024e2859
enable WAL in sqlite
2011-02-27 17:33:05 -05:00
Scott Wolchok
635dbc9a11
Merge remote branch 'donoban/master' into donoban-merge
2011-02-26 18:21:25 -05:00
Steffen Schaumburg
99a0e04e3e
Merge branch 'master' of git://github.com/swolchok/fpdb into scott
...
Conflicts:
pyfpdb/Database.py
pyfpdb/decimal_wrapper.py
2011-02-26 01:09:40 +01:00
Scott Wolchok
fc46b70c41
Rename decimal.py to decimal_wrapper.py so we don't break when
...
cdecimal is not installed.
2011-02-25 14:18:12 -05:00
DoNoBaN
37fcca55b9
Merge branch 'master' of git://git.assembla.com/fpdb
...
Conflicts:
pyfpdb/DerivedStats.py
2011-02-25 18:14:20 +01:00
DoNoBaN
e169f32242
Added raiseToSteal stat
2011-02-25 15:37:11 +01:00
Steffen Schaumburg
140ad6be5f
allow it to start when cdecimal is missing
2011-02-25 14:31:15 +01:00
Worros
3455b4ea69
Database: Make sqlite bool adapter use ints not strings
...
Scott Wolchok noted that the adapater was using strings, and possibly only working by luck.
Appears to give a 10-15% boost on a 10k hand import
2011-02-25 17:46:10 +08:00