chaz@pokeit.co
95d14911f3
Fixed a variety of bugs in storeSessionsCache() and the corresponding SQL statements
2010-12-08 16:32:26 -05:00
Worros
352c40baab
Merge branch 'chaz' of git://github.com/ChazDazzle/fpdb-chaz
...
Conflicts:
pyfpdb/regression-test-files/cash/Stars/Flop/LHE-10max-USD-1.00-2.00-No_max_seats.txt
2010-12-06 11:51:16 +08:00
Chaz
0c46965d98
Finished up code for creating and updating SessionsCache. Table includes fields for sessionStart, sessionEnd, ring hands, tournament hands, ring totalProfit, and ring bigBets won during each session. bigBets field is a python float stored as a REAL in the database (I am open to alternative suggestions). Also, storeSessions is currently set to False.
2010-12-04 17:40:48 -05:00
Worros
1e749d3cf3
Tourney Player Viewer fix for Bugid 0000050
...
SQL case statements only divided by 100 if the currency was USD.
This is a temporary fix - what we probably want is WHEN tt.currency != PLAY or FPP
2010-12-03 12:34:58 +08:00
Chaz
5a2fcea9df
turns out the the '+0' is for indexing and has nothing to do with NULLS so I put it back in
2010-12-02 00:27:03 -05:00
Chaz
5fd3dddf2b
* update_hudcache wasn't updating existing cashgame records because it was trying to match a NULL tourneyTypeId with a %s None value. Changed the logic of the SQL to handle this situation. It appeared like someone had tried to handle this by adding '+0' to the NULL record but it doesn't work.
...
* Deleted the attempted '+0' NULL value handling for gametypeId. gametypeId should never be null as an error would have already been thrown before it was inserted
2010-12-01 16:35:38 -05:00
Chaz
e0f76a508c
reverted HudCache styleKey to include only YYMMDD - however, it now stores the d000000 date based off the tz & offset
2010-11-30 14:05:28 -05:00
Chaz
21ac5229cb
Fixed styleKey char length to 9
2010-11-25 02:36:34 -06:00
Chaz
8026ba256a
It's %H, not %h
2010-11-24 14:41:12 -06:00
Chaz
ac4cae5abf
* Updated the methods, variables, and SQL in Database.py and SQL.py to add Hours to the HudCache.styleKey field
2010-11-24 14:14:29 -06:00
lastpoet
6e00ba9d78
add date boundaries in filters
2010-10-13 14:08:48 +08:00
steffen123
43a5fb0f74
Merge branch 'carl'
2010-10-10 17:48:54 +02:00
steffen123
dfd47cfbfb
unify some strings and remove misleading comment
2010-10-09 14:02:39 +02:00
lastpoet
8b25c67ba9
basic optimisation in stats
2010-10-06 15:57:33 +01:00
danny
126eb0c0bc
Added graphing improvements.
2010-10-04 08:54:20 +08:00
Worros
43edb615b0
SQL: Fix MySQL/Postgres Actions and HandsActions
2010-09-30 17:19:35 +08:00
Chaz
1b0db117ce
* updated 'createHandsActionsTable' and 'store_hands_actions' in the SQL dictionary
2010-09-28 17:01:31 -04:00
Chaz
c1b2a0040c
* Added HandsActions & Actions indexes & foreign keys to Database.py
...
* Added 'createActionsTable' to the SQL dictionary
* Updated create_tables so 'createActionsTable' would be called
* Updated dumpdatabase(), adding in u'Actions'
* Added action name & code info for filling the Actions table in FillDefaultData()
2010-09-28 16:59:37 -04:00
Worros
d0df1b6e44
SQL: Iport tourneyResults query
2010-09-09 18:08:03 +08:00
Worros
016b0ed48f
Tourney Graphing and Summary import update
...
It now gets through my 200 tourney torture test.
2010-09-04 20:06:24 +08:00
Worros
cf2629b290
New: Tournament Results Viewer
...
Decided to see how hard it would be to get the tournament results using the existing schema.
Turns out the cash graph query is pretty similar and not much thought was required.
Created a new tab based on the existing cash game viewer for profit.
This is probably the idea page for multiple axis to be added.
- Distributions for position
- distributions by buy-in level
- ROI per buy-in level
Lots of stuff like that.
2010-09-04 14:16:46 +08:00
Worros
26eca40b31
More HandsActions stubbing
2010-09-02 00:19:31 +08:00
steffen123
aabc9d2006
actually store TT.maxSeats
2010-08-22 06:46:47 +02:00
steffen123
52d38020d2
fix update hud cache/auto import
2010-08-21 18:30:10 +02:00
steffen123
6474f92dd1
add new tables RawHands/RawTourneys
2010-08-21 04:29:29 +02:00
steffen123
0c93963378
add these to HudCache storing: street0_4BChance/Done, other3/4BStreet0
2010-08-19 06:14:12 +02:00
steffen123
97dcc4561b
add (foldTo)otherRaisedStreet0 storing to HudCache
2010-08-19 06:05:59 +02:00
steffen123
13ce5117c8
add wonWhenSeenStreet2-4 storing to HudCache
2010-08-19 05:59:00 +02:00
steffen123
69c1c41b36
add these stats to DB/DerivedStats/SQL: street0_4BChance/Done, other3/4BStreet0
2010-08-19 04:09:24 +02:00
steffen123
8aecf117bb
add otherRaisedStreet0 and foldToOtherRaisedStreet0 with defualt false
2010-08-19 04:01:44 +02:00
steffen123
d5fb0b3c36
add wonWhenSeenStreet2-4 to DerivedStats' unimplemented section, store 0.0 by default
2010-08-19 03:55:12 +02:00
sqlcoder
d6c7ccaeff
get tourney stats working for sqlite and pg (pg display still dodgy, think gui is mangling some fields somehow, e.g. sitename)
2010-08-12 22:15:44 +01:00
steffen123
b5e481412e
fix session stats in pgsql
2010-08-11 06:11:11 +02:00
steffen123
f0b5b4063b
fix session viewer in mysql
2010-08-11 05:53:02 +02:00
steffen123
19bcc60c6a
missed a spot
2010-08-11 04:50:01 +02:00
steffen123
d1c1a0a0f4
correct Backings.tourneysPlayerId to tourneysPlayersId like it's used in HP
2010-08-11 04:43:17 +02:00
steffen123
f1ac0b1dfa
record HC.TTid on pgsql
2010-08-11 04:39:34 +02:00
steffen123
02b5ea8d37
corrected sqlite table layout. this also fixes hudcache generation for tourneys on sqlite
2010-08-11 04:25:47 +02:00
steffen123
5cba225fb3
improve naming of replacement clauses
2010-08-11 04:23:16 +02:00
steffen123
174aa4adfb
hudcache is regenerated properly on mysql now
2010-08-11 00:10:10 +02:00
steffen123
f0ef6e7e8b
add stub for query for positional stats on sqlite
2010-08-10 20:45:40 +02:00
steffen123
c5acd04bb6
This makes HUD Cache work again but without tourneytypeid - one of these lines breaks it
2010-08-10 01:27:25 +02:00
steffen123
4fbb26b4fa
remove some 100% duplicates
2010-08-10 01:00:35 +02:00
steffen123
bb743b4567
add button to display info from TP to tourneyviewer
2010-08-09 23:41:48 +02:00
steffen123
c5bd036b6e
add tourney viewer that displays info from TT and T, but not yet TP
2010-08-09 23:22:58 +02:00
Worros
333c0bb716
Filters: fix SQL query to only return ring game blind levels
2010-08-05 17:18:43 +08:00
Worros
2859948c8a
Merge branch 'master' of git://git.assembla.com/fpdb
2010-08-05 12:04:14 +08:00
Worros
c8006dc468
Merge branch 'master' of git://git.assembla.com/fpdb-sql
2010-08-05 12:03:54 +08:00
steffen123
9f52867bf6
add HP.wentAllInOnStreet field. explanation on wiki.
2010-08-04 23:41:50 +02:00
sqlcoder
15f99ddfa7
add bbper100 and BBper100 stats for HUD
2010-08-04 22:23:28 +01:00