Commit Graph

14 Commits

Author SHA1 Message Date
Chaz Littlejohn
d0ae2a155d changed all of the currency substitutions from byte stream (i.e. \xe2\x82\xac for EURO) to unicode (u'\u20AC') as it was throwing unicode errors when attempting to format the string in the various regex statements. I am aware that I may be the only one to encounter this problem. 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
Steffen Schaumburg
8a519699b5 update copyright year 2011-03-10 06:16:31 +01:00
Worros
3d7f75c933 Merge branch 'master' of git://git.assembla.com/fpdb 2011-02-28 10:00:45 +08:00
atinm
644b2d7849 replaced /usr/bin/python with /usr/bin/env python 2011-02-27 21:17:07 +08: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
Worros
d8220e0b2e FTP: Allow odd FTP summary file to parse.
Found an example summary file that only contained the player line:
<PLAYER> finished in XXXXrd place

Player should now be added the TP table, hence the stats should actually show up in the grapher
2011-02-10 17:28:00 +08:00
Worros
dccc61013b FTPSummary: First pass at EUR summary.
Failing test now passes.
2011-01-19 16:34:12 +08:00
Worros
c2e553751e FTPSummary: Fix 'Daily Dollar' summary file
Also comment out some noisy debug
2011-01-05 14:26:49 +08:00
Worros
0e33f0f29b FTPSummary: Expand regex to deal with rebuy info
New fields:
ADDON - cost of addon
REBUYAMT - cost of rebuy
PNAME - Hero name
PREBUYS - No of Hero rebuys
ADDONCHIPS - How many chips the addon purchased
REBUYCHIPS - How many chips a rebuy purchased
ADDONS - Total # of tourney addons
REBUYS - Total # of tourney rebuys
2010-12-27 19:24:54 +08:00
Worros
3fdab4a8c3 FTPSummary: Minor regex change for failing summary file 2010-12-27 18:28:00 +08:00
Worros
d2355c3ae8 FTPSummary: Add alternate Omaha label
Patch originally posted by patrask on IRC

http://hh.kallocain.se/FullTiltPokerSummary.py.patch
2010-12-02 11:27:06 +08:00
Worros
591543d468 L10n updates: C->F 2010-09-23 00:10:32 +08:00
Worros
d66ae965a1 FTSummary: First pass at a FTP summary importer
Definetly doesn't match 'Still playing' but seems to get almost everything else right
2010-09-10 17:16:09 +08:00