Commit Graph

165 Commits

Author SHA1 Message Date
Eric Blade
28450b1b8a remove tons of useless comments from fpdb.py - documentation should say something that isn't blazingly obvious by looking at the code 2009-09-09 05:01:03 -05:00
Matt Turnbull
d2380ba738 merge from futz2 branch 2009-08-28 18:24:51 +01:00
Eric Blade
aa0610dcfa fpdb: remove error trap on "Recreate Tables" menu option - trapping should be much more localized. 2009-08-16 04:46:41 -05:00
Matt Turnbull
222d713169 too much changes to go into master 2009-08-12 01:46:39 +01:00
sqlcoder
c0ddaad2e5 remove test for msql drivers 2009-08-06 21:12:50 +01:00
sqlcoder
cffe57dfa3 pass sql list through to importer from fpdb.py 2009-08-01 23:29:00 +01:00
sqlcoder
4dd9a8877d restart python if running an old version and 2.5 or 2.6 is available on PATH (Windows) 2009-08-01 12:45:10 +01:00
eblade
21b859f244 remove error handler on hudcache rebuild menu, if it errors we should know about it 2009-07-31 00:15:25 -04:00
eblade
85c635d1da remove error handler on Load Profile menu opt (menu opt doesn't work anyway, so it doesn't error) 2009-07-31 00:13:51 -04:00
sqlcoder
38ee98e492 pass sql list from fpdb through guibulkimport to fpdb_import 2009-07-29 06:37:06 +01:00
sqlcoder
298de5dc15 move most stuff from fpdb_db.py to Database.py and simplify db connections in fpdb_import 2009-07-28 23:58:10 +01:00
eblade
47f27cf31f fpdb.py: Add "Recreate HUD Cache" to Database menu
fpdb_db.py: Junk the dropping of indexes/FKs for MySQL INNODB in favor of just telling MySQL to ignore them.  Not sure if that works for other MySQL engines or other Database softwares.
2009-07-27 17:28:06 -04:00
sqlcoder
b9d462c175 make graphviewer use Database.py 2009-07-19 21:19:58 +01:00
sqlcoder
0fecdfb2d7 make positional stats use Database.py 2009-07-19 18:28:13 +01:00
sqlcoder
fb4ad79803 use someone else's interprocess locking code instead of python locks/semaphores - needs testing in Linux 2009-07-19 12:28:17 +01:00
sqlcoder
6a69bf512e use python locks instead of db locks for global lock 2009-07-18 22:21:29 +01:00
sqlcoder
9d9f850753 use Database.py in GuiPlayerStats 2009-07-18 20:46:50 +01:00
Matt Turnbull
79ca83c95a Merge from ray, minor conflicts 2009-07-15 00:20:26 +01:00
Matt Turnbull
dc6a1c45f9 sqlite - connecting and (re)creating some tables 2009-07-14 00:04:10 +01:00
sqlcoder
56ef131bed use 1 or 2 Database methods instead of the underlying fpdb_db methods (more to do) 2009-06-30 22:18:15 +01:00
sqlcoder
a3e6c2696f use Database instead of fpdb_db 2009-06-28 19:19:32 +01:00
sqlcoder
9b50987d0c add sql param to Database constructor - aim is to have just one SQL instance passed around and to use Database for db connections and methods 2009-06-23 23:44:37 +01:00
sqlcoder
84cc951045 comment out database creation wrongly included from my dev code 2009-06-23 22:05:22 +01:00
sqlcoder
2f0c7e8167 make load_profile reload HUD_config.xml and update status bar 2009-06-23 20:45:11 +01:00
sqlcoder
0afd8e2e70 use do_connect() instead of connect() 2009-06-22 23:43:11 +01:00
sqlcoder
1456104382 make graph viewer use its own db connection 2009-06-22 23:30:54 +01:00
Ray
b1ea38bea9 Add -c config cl option. Fpdb passes cl options to HUD. 2009-06-14 23:14:53 -04:00
sqlcoder
9d87e35082 fix quit option and postgres/windows connecting after last merges 2009-06-09 21:38:30 +01:00
Worros
d8dffb193f Merge branch 'master' of git://git.assembla.com/mctfpdb
Conflicts:

	pyfpdb/fpdb.py
2009-06-08 19:20:01 +08:00
Matt Turnbull
95a7ab8e48 Merge branch 'master' of git://git.assembla.com/fpdboz 2009-06-07 21:58:00 +01:00
Matt Turnbull
c1e4c083fe premerge 2009-06-07 21:57:56 +01:00
sqlcoder
45a303eb25 make global lock work (do nothing) if hands table doesn't exist 2009-06-07 20:07:18 +01:00
Worros
9091efa230 Merge branch 'master' of git://git.assembla.com/fpdb-sql 2009-06-05 09:11:25 +08:00
sqlcoder
401aca4c12 Merge branch 'master' of git://git.assembla.com/fpdboz 2009-06-04 20:29:58 +01:00
sqlcoder
b016c496f2 fix handling of global lock when re-creating tables 2009-06-04 20:27:15 +01:00
Worros
21e7e010bd Merge branch 'master' of git://git.assembla.com/fpdb-sql 2009-06-01 07:51:04 +08:00
sqlcoder
5b96769de3 implement global lock by locking hands table 2009-05-31 21:59:01 +01:00
sqlcoder
be61b2d253 change quit option to standard 'Quit' 2009-05-31 21:53:10 +01:00
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