Worros
f829ed937e
[NEWIMPORT] Move hud call to after database commit
...
HUD still doesn't quite work, but getting closer - suspect hud_cache rebuild isn't happening
2009-12-24 03:09:11 +08:00
Worros
72cf9a61ca
[NEWIMPORT] Add a commit at the end of the fpdb_import cycle
2009-12-24 03:09:10 +08:00
Worros
f527fe60a8
Fix a couple of typos
2009-12-24 03:09:08 +08:00
Carl Gherardi
c8734604c7
[NEWIMPORT] Enable printInsert, disable hud pipe
2009-12-24 03:09:02 +08:00
Worros
3584e6dcc1
[NEWIMPORT] Add call to HUD for auto import
...
Make sure the matching db_handid is recorded in the Hand object for later use
2009-12-24 03:09:00 +08:00
Worros
3f30878bbd
[NEWIMPORT] Partially fix number of hands parsed reporting
2009-12-24 03:08:51 +08:00
Eric Blade
c38efd61ef
trap IOError on hud pipe write when hud closed without autoimport stopping, turn off hud
2009-12-24 03:08:48 +08:00
Eric Blade
d3d8b4afbb
ttime = float with us to ms resolution
2009-12-24 03:08:47 +08:00
Eric Blade
b3d2a95796
fix return tuple in import_file_dict, fix text from autoimport to actually show up in autoimport window
2009-12-24 03:08:44 +08:00
Worros
36dda2174b
Move NEWIMPORT into config
...
Fix test_PokerStars test to catch exception when importing with the legacy importer
2009-11-30 14:33:32 +08:00
Eric Blade
67beb4bd9f
add textview to autoimport window for dropping status/info messages on, just call it's AddText func to get it there
2009-11-29 23:52:36 -05:00
Eric Blade
0b4f5acec1
some weird whitespace churning, and again comment out "sending hand to hud" message
2009-11-25 08:22:14 -05:00
Eratosthenes
5021cae297
Clean up logging changes.
2009-11-09 19:30:23 -05:00
unknown
ab1c37ead2
IndexError -> KeyError .. doh.
2009-11-04 10:46:36 -05:00
unknown
51da6fb687
cleaner
2009-11-03 15:29:05 -05:00
unknown
a6b7292943
mostly None checkings fixed (== to is != to is not)
2009-11-03 14:30:52 -05:00
Mika Bostrom
b8f19741e0
Fix packaging issues
...
Affected files:
* Configuration.py
* Database.py
* HandHistoryConverter.py
* fpdb_import.py
and setup.py to a lesser extent.
Logging requires a configuration file when initialising the class. If we
are executing from outside the source tree, this file is not present.
Catch config parser's error and try to provide the logging config file
from debian package path.
Update symlink target to match python-support from latest Debian and the
oncoming Ubuntu versions.
2009-10-21 20:24:46 +03:00
sqlcoder
518fd9e039
merge from Eric
2009-09-26 11:45:05 +01:00
sqlcoder
ea74862a5a
start changes to allow different hud choices for hero and opponents
2009-09-26 11:30:12 +01:00
Eric Blade
2790a623af
import, code, exception cleanups
2009-09-15 21:07:31 -05:00
Eric Blade
d6c5309aa3
clean up some module import code in fpdb_import
2009-09-15 20:10:18 -05:00
Eric Blade
715b14f81a
moved timeout_add that calls do_import outside of the for loop, so it's only created once per autoimport start, not once per site. fix addImportFile to ignore files that don't exist (not sure how they'd get there, but just in case), fixed exception looking for fpdb_simple.DuplicateError to look in it's actual location at Exceptions.DuplicateError
2009-09-11 00:12:46 -05:00
Eric Blade
1f9dd8f8e9
HHC/fpdb_import: throw in some calls to gtk.main_iteration(False)
...
GuiBulkImport: replace "Importing" label with actual progressbar (does not use percentages, simply an activity bar)
2009-09-09 22:10:55 -05:00
Eric Blade
9fa57b6014
Database: re-write and fix drop_tables
...
Exceptions: add FpdbDatabaseError
SQL: default all tourneytypeids to 1
fpdb_import: import error tuples set to right size
2009-09-04 06:49:46 -05:00
Worros
c350d62089
Fix typos
2009-09-03 15:44:28 +08:00
Eric Blade
63741468d0
removing "sending hand to hud" debug message
2009-08-30 12:45:02 -05:00
Matt Turnbull
d2380ba738
merge from futz2 branch
2009-08-28 18:24:51 +01:00
Matt Turnbull
29a0ad85c7
full path to logging.config, small fix in Configuration.Database string repr
2009-08-15 22:36:14 +01:00
grindi
bdfc6ef83f
Unified locale handling.
...
Added support for importing filenames containig non-latin symbols
2009-08-12 21:55:19 +04:00
Matt Turnbull
222d713169
too much changes to go into master
2009-08-12 01:46:39 +01:00
sqlcoder
d292cd18d4
Merge branch 'master' of git://git.assembla.com/fpdboz
2009-08-07 00:12:22 +01:00
sqlcoder
16319ea039
stop error when switching back from threads to 0 threads
2009-08-07 00:06:11 +01:00
sqlcoder
c0ddaad2e5
remove test for msql drivers
2009-08-06 21:12:50 +01:00
Worros
a37adde67e
Catch up to Eric - fix markStreets regex
2009-08-06 11:30:21 +08:00
eblade
34c469ab3a
Add AbsoluteToFpdb.py
...
Database: Add Absolute to sites
GuiPlayerStats: set avgseats to False
Hand: Add Absolute to SITEIDS list
fpdb_import: check for presence of settings['dropHudCache'] before testing it, to keep command line import from erroring
2009-08-05 21:07:16 -04:00
sqlcoder
61d2a83779
add hudcache option to Bulk Import tab
2009-08-04 21:41:04 +01:00
Worros
ff2cca361c
New insert player function for HHC import
...
Added getSqlPlayerIDs to Database.py - returns a hash {playername:sqlid}
Function uses a caching hash in Database.py to reduce the number of round trips to the database needed just to fetch the player ids for later inserts.
Need to do a performance comparison on a larger import.
2009-08-02 12:19:33 +08:00
Worros
40a0fe428b
Variable name change - hhc is better imho
2009-08-02 11:03:35 +08:00
sqlcoder
fbab3c7e24
make sure handsid is always returned and show size of queue when threaded
2009-08-01 00:07:31 +01:00
sqlcoder
f3a4a8b0d0
fix previous merge
2009-07-31 22:30:41 +01:00
sqlcoder
8d77b961d7
merge from eric @6df03cb...
2009-07-31 22:07:27 +01:00
sqlcoder
36f09ebc82
merge from ray @f5ba0b5b7...
2009-07-31 21:58:39 +01:00
sqlcoder
b503626c2b
add db writer threading
2009-07-31 21:24:21 +01:00
eblade
6df03cb234
HUD_main: if new hand id int is not available, we can't print it, so that generates a second error, double fault
...
fpdb_import: ok, we're keeping two lists now, one with updated st_size and one with m_time. grrr.
2009-07-31 01:15:28 -04:00
eblade
f5ba0b5b7f
Database: insert missing HandToWrite.payin_amounts var
...
EverleafToFpdb: remove DEBUG XXXXXXX line
FulltiltToFpdb: pass on converting tournament hands
Hand: add Hand.fee var that Database is looking for
fpdb_import: clean up file update scan code, queue files that have changed in the last 60 seconds for the next importer pass, instead of locking it up reading them now (not that this does anything since FT no longer updates the mtime until it closes the table, but maybe it works with Stars or others)
2009-07-30 21:50:08 -04:00
eblade
3ce0f91b27
useless change of a comment just to test my rss output
2009-07-30 19:53:44 -04:00
eblade
2c7e00f02a
fpdb_import: use stat_info.st_size instead of stat_info.st_mtime to determine hh file updates
2009-07-30 17:29:57 -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
sqlcoder
12e1da0a5e
add lock_for_insert routine but comment out for now (hangs)
2009-07-28 21:19:31 +01:00