From a109687ac46062991f4cdbb802b6906ff494a5da Mon Sep 17 00:00:00 2001 From: Ray Date: Sun, 29 Mar 2009 10:08:33 -0400 Subject: [PATCH] Fixed some 'True' v True problems. --- pyfpdb/Configuration.py | 2 +- pyfpdb/fpdb_save_to_db.py | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) 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 d48f669b..fe3e497d 100644 --- a/pyfpdb/fpdb_save_to_db.py +++ b/pyfpdb/fpdb_save_to_db.py @@ -42,8 +42,8 @@ def ring_stud(config, backend, db, cursor, base, category, site_hand_no, gametyp 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) @@ -70,8 +70,8 @@ def ring_holdem_omaha(config, backend, db, cursor, base, category, site_hand_no, """stores a holdem/omaha hand into the database""" import_options = config.get_import_parameters() - saveActions = False if import_options['saveActions'] == 'False' else True - fastStoreHudCache = False if import_options['fastStoreHudCache'] == 'False' else True + saveActions = False if import_options['saveActions'] == False else True + fastStoreHudCache = False if import_options['fastStoreHudCache'] == False else True # print "DEBUG: saveActions = '%s' fastStoreHudCache = '%s'"%(saveActions, fastStoreHudCache) # print "DEBUG: import_options = ", import_options @@ -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)