Commit Graph

227 Commits

Author SHA1 Message Date
Matt Turnbull
94370a653c fix conflicts 2009-05-30 16:40:27 +01:00
Worros
a9dac26381 Merge branch 'master' of git://git.assembla.com/fpdb-sql 2009-05-28 22:32:34 +08:00
Worros
3892b3789d Session breakdown Proof of Concept
Only prints some of the session breakdown to stdout at the moment,
otherwise is a copy of PlayerStats with a bunch of stuff commented out.

Looks like:

DEBUG: len(times) 337
DEBUG: len(diffs) 336
DEBUG: len(index[0]) 2
DEBUG: index [54 88]
DEBUG: index[0][0] 54
Hands in session    0:   54  Start: 22/03/2009 07:04 End: 22/03/2009
07:49 Total: 2669
Hands in session    1:   33  Start: 24/03/2009 17:10 End: 24/03/2009
17:35 Total: 1482

I think the Total number has an index incorrect at the moment.
2009-05-26 16:10:27 +08:00
sqlcoder
90b886e77f another parameter fix to the fpdb.py gui update 2009-05-25 21:30:37 +01:00
sqlcoder
e7532ea497 fix typos in control keys in last release 2009-05-23 22:06:41 +01:00
sqlcoder
061ff083a6 get rid of warning message when starting fpdb 2009-05-23 21:42:26 +01:00
sqlcoder
d811c6b656 add rollback to release locks when db reads are finished 2009-05-23 23:31:56 +08:00
sqlcoder
ee9d69ae5e more minor cosmetic changes 2009-05-21 23:09:11 +01:00
sqlcoder
93f643a958 fix error when choosing unimplemented menu option 2009-05-20 23:21:50 +01:00
sqlcoder
cee4cade3e Add hotkeys for stats windows and pass main window into guiplayerstats 2009-05-20 09:58:38 +01:00
sqlcoder
de98d5dd15 remove surplus db variable and debug mysql problem in previous commit 2009-05-04 20:36:11 +01:00
sqlcoder
5111eb1a8f remove redundant db variable 2009-05-02 21:39:48 +01:00
sqlcoder
882f19a34d removed redundant db variable 2009-05-02 21:07:52 +01:00
Worros
f6311276a7 Remove some merge noise 2009-04-28 14:50:50 +08:00
sqlcoder
d9d8043888 add rollback to release locks when db reads are finished 2009-04-27 10:45:49 +08:00
Worros
b1aade624f Change default window size because it bugged me 2009-04-11 04:28:54 +08:00
Ray
460102c3f5 Version 0.11 2009-04-07 10:44:06 -04:00
Worros
b92022fecd Fix call to get_db_parameters 2009-03-27 23:53:44 +09:00
Worros
1be81ced66 Allow dbname to be something other than fpdb
Patch from Rune Nesheim to allow the dbname to be specified on the
command line
2009-03-27 22:53:01 +09:00
Worros
5e5e79f08a Fix typo 2009-03-23 22:18:22 +09:00
eblade
80c3922bc0 remove pyc, merge with everyone else
remove some useless junk in fpdb.display_tab()
2009-03-16 18:35:56 -04:00
Worros
86101c522c GuiPositionalStats.py
New tab, output cols aren't labelled properly but we appear to have
something sane
2009-03-03 20:32:01 +09:00
Ray
5f290ace56 Updated version to 0.10 via new VERSION variable. 2009-01-30 13:00:29 -05:00
eblade
fb9d7c0af2 Add file HUD_run_me, to be run by GuiAutoImport
GuiAutoImport: run HUD_run_me instead of HUD_main
HUD_main: Add HUD_removed() function, called by HUD when an individual HUD is closed, eliminates polling them every update; use 'in' operator instead of has_key
HUD: clean up code that deals with lack of font descriptor in config, and notification of what font was selected
HUD: clean up unnecessary use of keys() functions, and 'in' vs has_key
HUD: restore previous definition of reposition_windows(), although i can't make it error at will anymore
Tables: cleanup with keys() and in operator
fpdb: no longer raise an error on duplicate tab, since we currently depend on that, it's not an error, right?
2009-01-06 05:18:45 -05:00
steffen123
c8d12cfe61 p144 - updated table design after comments on draw tables 2008-12-10 03:55:12 +00:00
sqlcoder
4dc15bfd94 pulled and merged from fpdboz 2008-12-07 23:38:33 +00:00
Worros
425997d66a Merge branch 'master' of git://repo.or.cz/fpbd-bostik 2008-12-07 14:17:05 +09:00
Mika Bostrom
6070066f8a obtain_global_lock() is a method, not top-level function 2008-12-06 15:16:55 +02:00
Mika Bostrom
c9700fc1a7 Some debugs 2008-12-06 14:34:44 +02:00
Worros
1576387d61 Add GuiPlayerStats to menu 2008-12-06 19:09:18 +09:00
sqlcoder
a824814c0a sqlcoder initial updates 2008-12-02 00:15:50 +00:00
steffen123
f38cdab8e0 p143 - update title 2008-11-10 02:21:47 +00:00
steffen123
49151a92bf p142 - commented tourney summary parsing as it fails on me. this is alpha9 2008-11-10 02:02:12 +00:00
steffen123
c739395189 p140 - added CLI option to fpdb.py to control redirection of stderr 2008-11-07 00:14:25 +00:00
Worros
389d9361b9 Update Graph Viewer to use config file, fill Entry with player_name field from the config. 2008-10-25 14:57:29 +08:00
Worros
c48b2f3057 Remove load_default_profile function.
All references to load default profile were removed when Ray merged the config files.

Deletes function and all references to it.
2008-10-25 14:45:39 +08:00
Worros
81a6d5f972 Revert label from Ray - Alpha6+ back to Alpha8+ 2008-10-25 14:24:10 +08:00
Ray
bc834a9d79 more cleanup of config file consolidation 2008-10-22 10:14:25 -04:00
Ray
6d449b9a2e more cleanup of config file consolidation 2008-10-21 21:49:17 -04:00
Ray
a719efc6dc consolidate config files--default.conf no longer needed 2008-10-21 10:22:01 -04:00
steffen123
7833c0c5cd p136 - title update - alpha7 2008-10-17 05:59:50 +01:00
steffen123
5c73bd7f3b p136 - title update - alpha7 2008-10-15 18:26:24 +01:00
steffen123
bc15025be5 p135 - updated tv 2008-10-15 18:20:33 +01:00
steffen123
acb4160969 Merge git://git.assembla.com/fpdboz 2008-10-09 21:22:28 +01:00
steffen123
35625f6d29 p131 - insignificant changes to fpdb.py 2008-10-09 21:21:40 +01:00
Worros
5389244f71 Merge git://git.assembla.com/fpdb 2008-10-09 21:13:53 +08:00
Worros
98b556f42c Turn fpdb_import functions into class Importer
Fix all callers of fpdb_import
2008-10-09 01:36:08 +08:00
Worros
79651706f6 Make GuiGraphViewer use the query file.
Make minor adjustment to Graph
2008-10-08 19:53:25 +08:00
steffen123
e23ae25d00 p124 - renamed categories for 27 single/tripple draw. updated abbreviations. 2008-10-08 06:28:09 +01:00
steffen123
9e819f3ad2 p122 - started on table design for draw games 2008-10-08 05:47:47 +01:00
steffen123
31ab863b47 p120 - minor tv fix, renamed fpdb error, added notice about it to output. fixed tourney and stud to run again. 2008-10-07 02:21:43 +01:00
steffen123
2a90030982 p118 - added all in field to HandsActions and parsing to importer. still need to update hudCache generation to use this tho
expanded some todo prints and the graph missing lib error to clarify for users
2008-10-06 04:26:59 +01:00
steffen123
f9f58f88e6 p112 - fix from ray that Hud sometimes didn't save positions 2008-10-05 02:30:16 +01:00
steffen123
f1947bb6cb p111 - Database.py now works without unnecessary db libs. Configuration.py made executable. stderr now unbuffered. 2008-10-04 19:03:02 +01:00
steffen123
3e61bb1729 p109 - change of window title. this is alpha5 2008-09-26 20:06:27 +01:00
steffen123
b549aa2605 p107 - HUD updates from ray, FTP now supported 2008-09-26 14:18:47 +01:00
steffen123
ce3187667c p106 - fixed small blind reading 2008-09-26 13:01:57 +01:00
steffen123
c19c933942 p102 - moved initial data INSERTs for mysql to separate method for future unification with pgsql table creation code 2008-09-24 05:22:17 +01:00
steffen123
6304790f38 p98b - redirect stderr 2008-09-24 03:58:14 +01:00
steffen123
541164e378 p98 - redirect stderr 2008-09-24 03:56:44 +01:00
steffen123
4e8a09ff84 p93 - unbet now stores a negative amount since that's what it is 2008-09-22 22:12:03 +01:00
steffen123
7ed7db3791 p89 - graph now sorts by siteHandNo rather than handId and takes into account expenditure. 2008-09-21 22:21:09 +01:00
steffen123
8117193b4f p88 - graph viewer now takes player name from GUI rather than hardcoded player id 2008-09-21 14:24:43 +01:00
steffen123
009161d55b p87 - added profit graph kindly sent by Carl Gherardi, it's got fixed player id and is using the wrong table fields right now, will fix that tomorrow or so. note that this adds a new dependency, matplotlib, but I put it into a try except loop to avoid load failure
added subfolder gentoo to packaging folder and added it to release script
2008-09-20 05:56:16 +01:00
steffen123
672d2d70af p86 - ftp: read maxSeats rather than making an assumption. included new ebuild this time but obviously untried (can only try it after making the file release..). removed old ebuilds. 2008-09-18 01:23:38 +01:00
steffen123
656356d299 p84 - included updated HUD_config.xml.example (was in the last commit actually) 2008-09-17 01:44:40 +01:00
steffen123
092f68e259 p81 - fixed create release script, updated ebuild 2008-09-16 03:14:59 +01:00
steffen123
7b13331331 p80 - a great many updates from Ray 2008-09-15 21:31:55 +01:00
steffen123
2c251d94f2 p78 - implemented stud HudCache generation and storing 2008-09-02 01:00:43 +01:00
steffen123
4976dc742c p77 - make windows use correct language version of Appdata folder, e.g. Anwendungdaten in german 2008-09-01 17:54:48 +01:00
steffen123
54ff7b71f1 p76 - specify NOT NULL on almost all table columns to increase DB resilience against importer errors
little bugfix to make omaha work again
2008-09-01 17:32:18 +01:00
steffen123
c963599b76 p75 - show database version error in GUI 2008-09-01 16:18:01 +01:00
steffen123
37e111067b p72 - redid foldToCB, this might be correct now but havent verified 2008-08-31 23:37:40 +01:00
steffen123
a289f7b151 p71 - fixed guibulkimport. thought I'd already done that, but there you go..
added 4B detection to HudCache filling
added primitive filling code for foldToStreetXCB, this'll not be correct for all cases yet
2008-08-31 21:22:36 +01:00
steffen123
0b96d49b23 p70 - it displays GUI error message for missing config file 2008-08-31 03:06:24 +01:00
steffen123
60bdfb64f3 p68 - updated PrintPlayerHudData. this is alpha2 2008-08-23 01:16:35 +01:00
steffen123
1b4696b268 p67 - finished updating print_hand and renamed it to PrintHand. also updated the related .expected files and thereby checked that the importer (except cache) still works correctly. 2008-08-22 22:39:43 +01:00
steffen123
07f8220808 p66 - mostly HUD improvements from ray
HUD now doesnt display a taskbar window for each stat window
HUD w$wsf works
more HUD improvements
made windows not call fpdb hud
moved conf file out of profiles folder
2008-08-22 21:10:32 +01:00
steffen123
76448ce06f p65 - fixed minor bugs in the various calls to fpdb_import
bulk import works on single files again
table viewer works again
fixed CLI import
2008-08-22 20:32:20 +01:00
steffen123
6689054cc7 p64 - made default interval for auto import a more sensible 10s 2008-08-20 22:14:38 +01:00
steffen123
999eac4019 p58 - 2008-08-18 19:42:30 +01:00
steffen123
928e7262f4 p57 - added optional call to hud into importer
changed config file to windows line endings
started updating print_hand to new tables
2008-08-18 15:41:34 +01:00
steffen123
660530a166 p56 - various fixes to get FTP working again
fixed in prev commit: sometimes truncuates position on store in tourneys
2008-08-18 09:05:22 +01:00
steffen123
b546868e10 p55 - three bugfixes
fixed bug that it filtered sitouts in tourneys
fixed bug that it didnt handle if some joined (tourney) out of hand
fixed bug that it didnt handle : in player name
2008-08-18 07:43:05 +01:00
steffen123
f6d596d2ed p54 - fixed bug that caused everything but FL to fail 2008-08-18 06:51:18 +01:00
steffen123
de845d4e90 p53 - more progress on tourneys 2008-08-18 06:27:37 +01:00
steffen123
8fb57d3729 p52 - much progress on tourneys and some minor stuff and a change of tables
migrated install-in-windows to website
renamed table tourneysgametypes to tourneytypes
2008-08-18 05:58:41 +01:00
steffen123
6eb42cd05e p51 - added to git instructions
updated tv to use new HudCache
2008-08-18 03:56:59 +01:00
steffen123
6a5d1d6332 p50 - added Hands.maxSeats 2008-08-18 02:45:06 +01:00
steffen123
5612ee6637 p48 - removed some redundant bracketed values from tv
renamed cache fields and added more to be flexible for stud style games. note that tv is not updated yet
added forums and bugtracker to website sidebar
2008-08-17 13:13:42 +01:00
steffen123
5a462037c3 p46 - auto-importer kinda works - it does what its supposed to, but freezes the interface. you can however just start the interface a second time. anyone know how to fix this? 2008-08-17 05:28:26 +01:00
steffen123
579b44450c p45 - implemented HandsPlayers.seatNo 2008-08-17 04:44:53 +01:00
steffen123
18ff57027f p44 - implement hands.tableName/importTime 2008-08-17 03:18:42 +01:00
steffen123
9531c8d85b p43 - implemented gametypes.base/.hiLo and more updates to table design 2008-08-17 02:46:23 +01:00
steffen123
e9d8b685ec p42 - started implementing autoimport.
renamed some files to match the future more precise splitting of processing and frontend code
changing from gitX to pX to match Gentoo portage's convention.

changed table design on feedback from ray but not yet the actual code - more coming shortly
2008-08-17 01:48:03 +01:00
steffen123
0f032bcc5e git41 - added a bunch of new cache fields containing placeholder data. okay totalProfit should actually be filled correctly already :) 2008-08-16 22:03:27 +01:00
steffen123
16be2b39f9 git40 - fixed little bug in table creation and added tourneyGametypeId to the cache to make tourney caching more sensible. 2008-08-16 07:16:50 +01:00
steffen123
701a824ac6 git39 - started to reactivate tourney support - split tourneys table in design and recreate code, but still need to update the code 2008-08-15 04:28:51 +01:00
steffen123
423753de17 git38 - make HudData tables positional (sf request 2052124) 2008-08-15 03:32:27 +01:00
steffen123
732edf9e69 git37 - make table drops depending on previous db version 2008-08-15 02:53:37 +01:00
steffen123
ff2e75cb6b git36 - implement tv-combinedStealFold and tv-combined2B3B 2008-08-15 02:45:19 +01:00
steffen123
341b24a2e0 git35 - changed table and field names to match my naming convention to stabilise downstream-facing api. 2008-08-15 01:45:40 +01:00
steffen123
e56a65b4c9 git34 - reading CB/2B/3B now. Some doc updates 2008-08-13 08:11:20 +01:00
steffen123
61d0857a4c git33 - added fields for CB/2B/3B to table design, table creation and tv. importer fills it with placeholder data
renamed ebuild from v0.01 alpha to v1.0 alpha as I won't be using normal version numbers before 1.0
2008-08-13 06:50:30 +01:00
steffen123
aecfa6d61b git31 - last git added generating the reaction to steal data. this git adds em to tv.
On the tested hand this works correctly :)
2008-08-13 04:22:22 +01:00
steffen123
2a0f73646c git30 - 2008-08-13 04:13:56 +01:00
steffen123
6d61e1e6c6 git29 - it displays ST correctly (well, for the one steal I checked that is) 2008-08-13 03:29:24 +01:00
steffen123
6d7bdc347c git28 - added test hands for steal and cb
uncommented db version checking - it works
started implementing storing steals
filling steal attempts and attempt chances fields now, but not verified correctness nor am i displaying it
2008-08-13 03:07:44 +01:00
steffen123
436bfc26f2 git27 - changed version identifier to alpha1. yay :) 2008-08-11 23:03:30 +01:00
steffen123
09f233d6e4 git26 - add to install the sql commands to create DB etc.
fixed little bug in load_profile introduced by recent improvements there
updated regression testing to take into account everything new, made sure it passes all tests
more table design cleaning
various doc updates
added create-release.sh to automate release creation
2008-08-11 17:39:13 +01:00
steffen123
47bf90d71c git25 - default path of importer and table viewer are now plattform dependent defaults that'll work on default setups but can also be changed using the profile file 2008-08-11 01:29:08 +01:00
steffen123
9b737612d0 git24 - changed config file format to match new way of passing around settings inside the code - will use this to facilitate various code cleanups and a generalised method of dealing with settings
got deep links for windows DL for everything
tv option of combined postflop is now exported to profile
2008-08-11 00:44:46 +01:00
steffen123
488af76f8e git23 - added references to readme-user and agpl to main screen 2008-08-10 03:34:45 +01:00
steffen123
e56e071b7c git22 - now shows single postflop agg/fold rate - can be changed by editing fpdb. may flip this arbitrarily, will export it to profile soon 2008-08-10 03:26:51 +01:00
steffen123
b0dd505627 git21 - added fpdb version into db to detect outdated db format. added fields for steals to DB and placeholder inserts to importer. lots of doc updates
split pygtk requirements, cleaned table design HTML more
noticed its really slow now - might be because I'm running it over LAN. will figure this out shortly
2008-08-10 02:52:05 +01:00
steffen123
3d82fd4f6a git20 - made differently arranged array for actiontypes, used that to calculate 3B/4B percentage 2008-08-09 18:53:07 +01:00
steffen123
0e84dceb1f git19 (REIMPORT needed) - updated everything to use new action counting method -> it half works, but fails to store (or print) a substantial proportion of the action_nos
removed bunch of commented prints from fpdb_parse
2008-08-08 22:03:43 +01:00
steffen123
bf691fe9e7 git18 - tv now has background colours to make it far more legible 2008-08-08 00:07:00 +01:00
steffen123
33e085cf88 git17 - added fields to db+imp+tv: Won $ when seen flop and Won $ at Showdown. Seem to work fine, will verify properly later. REIMPORT is necessary after this update.
cleaned table design a bit more
removed actionCount from print_hand - this is useless. need to update regression-test/*.expected.txt accordingly
2008-08-07 16:08:23 +01:00
steffen123
0a9c2cb292 git16 - fixed tv browse button size 2008-08-07 12:14:53 +01:00
steffen123
490af1acaf git15 - fixed bug that it read sawShowdown wrong. fixed postflop fold importing. fairly certain importer is running correctly now :)
also added SD/F, the percentage of the time the user saw the showdown when they saw the flop. I believe this is normally called WtSD, but this is clearer.
widened main GUI a bit more
the todolist is still growing hehe
2008-08-07 11:08:50 +01:00
steffen123
39f5b9095c git14 - finished one .expected for the HUD data table. seems to reveal a total of 5 errors - ouch
changed range of tv-activeSeats on user feedback - will do this occasionally until i make it configurable
"fix": "imp/tv bug: handcount is only about 1/2 of what it should be" -> this was NOT a bug. I was just a bit silly and didn't connect the dots from activating a filter by number of active players and the sudden drop of hands.
2008-08-07 00:17:51 +01:00
steffen123
9ca400b4ab git13 - tv now displays the data over a range of activeSeats. see table_viewer.py lines 75-84 for ranges.
added version string to GUI
made GUI a bit wider to accomodate wider t
2008-08-06 21:57:02 +01:00
steffen123
5ee5594741 git12 - added percent sign to tv display
removed debug prints that im not going to touch for a while.
2008-08-06 21:09:29 +01:00
steffen123
7af8bb922a git8 - updated the 3 ps testdatas and regression test 2008-08-04 21:51:32 +01:00
steffen123
67c2b3fe04 git2 - import now stores the first few fields into a new line.
little fix on load_profile - still doesnt work tho
2008-08-04 07:29:53 +01:00
steffen123
f17e8b54b4 git1 - initial git commit. note that right now nothing works due to reworking things 2008-08-04 04:44:28 +01:00