From 521e17f8568b1bcd21b5a0a4cb08f879f5d94381 Mon Sep 17 00:00:00 2001 From: Worros Date: Wed, 15 Jul 2009 12:22:46 +0800 Subject: [PATCH] Add some boilerplate stuff for Boss Media/Win2day plugin --- pyfpdb/HUD_config.xml.example | 46 +++++++++++++++++++++++++++++++++- pyfpdb/HandHistoryConverter.py | 2 +- pyfpdb/Win2dayToFpdb.py | 0 pyfpdb/fpdb_db.py | 1 + 4 files changed, 47 insertions(+), 2 deletions(-) mode change 100644 => 100755 pyfpdb/Win2dayToFpdb.py diff --git a/pyfpdb/HUD_config.xml.example b/pyfpdb/HUD_config.xml.example index ef30fb9b..3cd592cc 100644 --- a/pyfpdb/HUD_config.xml.example +++ b/pyfpdb/HUD_config.xml.example @@ -159,6 +159,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -292,6 +336,7 @@ + @@ -300,4 +345,3 @@ - diff --git a/pyfpdb/HandHistoryConverter.py b/pyfpdb/HandHistoryConverter.py index fc6567f0..7e08554b 100644 --- a/pyfpdb/HandHistoryConverter.py +++ b/pyfpdb/HandHistoryConverter.py @@ -114,7 +114,7 @@ class HandHistoryConverter(): If in follow mode, wait for more data to turn up. Otherwise, finish at eof... -""" +""" starttime = time.time() if not self.sanityCheck(): print "Cowardly refusing to continue after failed sanity check" diff --git a/pyfpdb/Win2dayToFpdb.py b/pyfpdb/Win2dayToFpdb.py old mode 100644 new mode 100755 diff --git a/pyfpdb/fpdb_db.py b/pyfpdb/fpdb_db.py index f89b5d6d..0af29aa1 100644 --- a/pyfpdb/fpdb_db.py +++ b/pyfpdb/fpdb_db.py @@ -319,6 +319,7 @@ class fpdb_db: self.cursor.execute("INSERT INTO Sites VALUES (DEFAULT, 'Full Tilt Poker', 'USD');") self.cursor.execute("INSERT INTO Sites VALUES (DEFAULT, 'PokerStars', 'USD');") self.cursor.execute("INSERT INTO Sites VALUES (DEFAULT, 'Everleaf', 'USD');") + self.cursor.execute("INSERT INTO Sites VALUES (DEFAULT, 'Win2day', 'USD');") self.cursor.execute("INSERT INTO TourneyTypes VALUES (DEFAULT, 1, 0, 0, 0, False);") #end def fillDefaultData