diff --git a/pyfpdb/Configuration.py b/pyfpdb/Configuration.py index 8db1f14f..1dc19db9 100755 --- a/pyfpdb/Configuration.py +++ b/pyfpdb/Configuration.py @@ -532,7 +532,7 @@ class Config: return paths def get_frames(self, site = "PokerStars"): - return self.supported_sites[site].use_frames == "True" + return self.supported_sites[site].use_frames == True def get_default_colors(self, site = "PokerStars"): colors = {} diff --git a/pyfpdb/fpdb_save_to_db.py b/pyfpdb/fpdb_save_to_db.py index f497428f..b99975f9 100644 --- a/pyfpdb/fpdb_save_to_db.py +++ b/pyfpdb/fpdb_save_to_db.py @@ -73,8 +73,8 @@ def ring_holdem_omaha(config, backend, db, cursor, base, category, site_hand_no, saveActions = False if import_options['saveActions'] == False else True fastStoreHudCache = True if import_options['fastStoreHudCache'] == True else False - #print "DEBUG: saveActions = '%s' fastStoreHudCache = '%s'"%(saveActions, fastStoreHudCache) - #print "DEBUG: import_options = ", import_options +# print "DEBUG: saveActions = '%s' fastStoreHudCache = '%s'"%(saveActions, fastStoreHudCache) +# print "DEBUG: import_options = ", import_options t0 = time() fpdb_simple.fillCardArrays(len(names), base, category, card_values, card_suits) @@ -114,8 +114,8 @@ def tourney_holdem_omaha(config, backend, db, cursor, base, category, siteTourne """stores a tourney holdem/omaha hand into the database""" import_options = config.get_import_parameters() - saveActions = True if import_options['saveActions'] == 'True' else False - fastStoreHudCache = True if import_options['fastStoreHudCache'] == 'True' else False + saveActions = True if import_options['saveActions'] == True else False + fastStoreHudCache = True if import_options['fastStoreHudCache'] == True else False fpdb_simple.fillCardArrays(len(names), base, category, card_values, card_suits) fpdb_simple.fill_board_cards(board_values, board_suits) @@ -151,8 +151,8 @@ def tourney_stud(config, backend, db, cursor, base, category, siteTourneyNo, buy #stores a tourney stud/razz hand into the database import_options = config.get_import_parameters() - saveActions = True if import_options['saveActions'] == 'True' else False - fastStoreHudCache = True if import_options['fastStoreHudCache'] == 'True' else False + saveActions = True if import_options['saveActions'] == True else False + fastStoreHudCache = True if import_options['fastStoreHudCache'] == True else False fpdb_simple.fillCardArrays(len(names), base, category, cardValues, cardSuits)