Commit Graph

2209 Commits

Author SHA1 Message Date
Mika Bostrom
14dc35ef81 Fix initial run with postgres
Simplify error check, so that regardless of how the table name is
mangled, we now catch just the meaningful part.

When trying to obtain the lock, make sure that there is no transaction
block open (which tends to happen on error-paths); flush the database
connection before requesting exclusive lock.
2009-07-06 00:15:37 +03:00
Mika Bostrom
d3373add8b Fix most annoying typo in Postgres case
The error message from postgres contains the said table as written in
original command. 'Players' != 'players', indeed. Now software can at
least start with postgres and an empty database.
2009-07-06 00:00:32 +03:00
Mika Bostrom
105e868864 Catch local connection config
If database backend is Postgres and the connection is over domain
socket, the only values in <database> node are:
    * db_name
    * db_server
    * db_type

Now, for some reason the config reader unconditionally creates "tidy"
string representations for all possible keys. This means that
host, user and password are all empty strings (''), and not even
NoneType entities.

To catch the case for postgres, simply treat empty host the same as
undefined host.
2009-07-05 23:33:09 +03:00
Ray
8f2350f861 Set dealt flag when reading holdem hero cards. 2009-07-05 11:47:18 -04:00
Ray
c4cc6bd1aa Make WriteHand for holdem report mucked cards. 2009-07-04 15:28:20 -04:00
Ray
a35b1a8b3c Make WriteHand for stud report mucked hand. 2009-07-04 15:19:46 -04:00
Ray
f323447313 Get shown and mucked cards for stud games. 2009-07-04 14:35:20 -04:00
Worros
89b410a766 Merge branch 'master' of git://git.assembla.com/free_poker_tools 2009-07-04 14:51:55 +08:00
Ray
23a4ca34c8 Fix bug preventing some shown cards from being read. 2009-07-03 20:41:08 -04:00
Ray
0636a290f7 Get mixed game info and put it in gameType structure. 2009-07-03 19:28:32 -04:00
Ray
9d7c370449 Get mucked cards from Stars flop games. __str__ method for Hand. 2009-07-03 18:59:50 -04:00
Ray
3c2c328f5a Fix for PokerStars NewVPP tables. 2009-07-03 13:23:30 -04:00
Ray
7d97365fbf Merge branch 'master' of git://git.assembla.com/fpdb-sql 2009-07-02 10:11:23 -04:00
Ray
97520bfee9 Fix call to StoreHands for stud games. 2009-07-01 13:55:12 -04:00
Ray
4394c7beb3 Fix to convert stud hands. 2009-07-01 13:53:30 -04:00
Ray
2cfe7f2ccc Fix bug--get correct player id in Flop_Mucked tool tip. 2009-07-01 08:29:37 -04:00
Worros
7351749b7a Merge branch 'master' of git://git.assembla.com/fpdb-sql
Conflicts:
	pyfpdb/Hand.py
2009-07-01 09:21:21 +08:00
sqlcoder
b45fceac21 Merge branch 'master' of git://git.assembla.com/free_poker_tools 2009-06-30 22:20:21 +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
cb1a4d2d0a add wrappers for fpdb_db methods (plan is to move the fpdb_db methods into Database) 2009-06-30 22:00:55 +01:00
sqlcoder
04b9dd9126 use Players table for global lock because Database.init() tries to access Hands 2009-06-30 21:58:59 +01:00
Ray
a3f233ca07 Comment out a DEBUG print. 2009-06-30 14:21:06 -04:00
Ray
3e90f42e89 Merge branch 'master' of git://git.assembla.com/fpdb-sql 2009-06-30 11:51:20 -04:00
Ray
71d673f64f Added Hello_Seats to Hello.py. Demo of Aux_Seats class. 2009-06-30 11:45:14 -04:00
Ray
a8b8ff2f4d More on Aux_Seats class. This seems to work OK. 2009-06-30 11:43:47 -04:00
Worros
3c438a9298 Make site selection behave like other options 2009-06-30 18:32:58 +08:00
Worros
5611f115cd Remove DEBUG line that wasn't supposed to make the last commit 2009-06-30 18:32:30 +08:00
sqlcoder
a3e6c2696f use Database instead of fpdb_db 2009-06-28 19:19:32 +01:00
sqlcoder
dc7a3fb88e finish removal of store_board_cards() 2009-06-28 18:56:18 +01:00
sqlcoder
cb323d2d63 remove unused queries 2009-06-28 17:20:41 +01:00
sqlcoder
a2db28ebf2 create Database instance in import to pass into parser - will eventually replace fpdb_db 2009-06-25 23:14:32 +01:00
sqlcoder
9b4e47df9a comment out debug message 2009-06-25 23:10:37 +01:00
Ray
7f7ad2a13e Further on Aux_Seats interface. Works. Not ready for prime time. 2009-06-25 10:07:40 -04: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
Ray
2f8918ebc9 Merge branch 'master' of git://git.assembla.com/fpdb-eric 2009-06-23 10:25:12 -04:00
Ray
24b7af5703 Merge branch 'master' of git://git.assembla.com/fpdb-sql 2009-06-23 10:23:05 -04:00
Ray
0bf39dbcf6 Merge branch 'master' of git://git.assembla.com/fpdboz
Conflicts:
	pyfpdb/fpdb_import.py
2009-06-23 10:04:23 -04:00
Ray
8cdac24517 Subclass Aux_Seats from Aux_Windows. Flop_mucked now a Aux_Seats. 2009-06-23 09:56:29 -04: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
sqlcoder
456ddb3e91 use do_connect() instead of connect() and remove settings parameter (config includes them) 2009-06-22 23:19:03 +01:00
sqlcoder
45a9358cbd set defaults for unused params to allow new calls without needing to set them 2009-06-22 23:16:34 +01:00
sqlcoder
699f79722b add time print for positional stats tab 2009-06-22 22:05:28 +01:00
sqlcoder
45c78b8a5f Merge branch 'master' of git://git.assembla.com/fpdboz 2009-06-22 21:43:59 +01:00
sqlcoder
1fbb7d166c remove redundant code 2009-06-22 21:41:41 +01:00
sqlcoder
ac30e912c7 smarten up positional stats tab (still needs configurable columns) 2009-06-22 21:39:14 +01:00
Ray
287394c97d Use xpad and ypad from game element. 2009-06-20 10:01:52 -04:00
Ray
462ff87596 Add xpad and ypad to site and game elements. Cleanup some defaults. 2009-06-20 09:43:05 -04:00