fpdb_save_to_db: minor cleanup
This commit is contained in:
parent
a424a9c77d
commit
1b626271ee
|
@ -40,14 +40,9 @@ def ring_stud(config, backend, db, cursor, base, category, site_hand_no, gametyp
|
|||
,seatNos):
|
||||
|
||||
import_options = config.get_import_parameters()
|
||||
if import_options['saveActions'] == 'True':
|
||||
saveActions = True
|
||||
else:
|
||||
saveActions = False
|
||||
if import_options['fastStoreHudCache'] == 'True':
|
||||
fastStoreHudCache = True
|
||||
else:
|
||||
fastStoreHudCache = 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)
|
||||
|
||||
|
@ -74,14 +69,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()
|
||||
if import_options['saveActions'] == 'True':
|
||||
saveActions = True
|
||||
else:
|
||||
saveActions = False
|
||||
if import_options['fastStoreHudCache'] == 'True':
|
||||
fastStoreHudCache = True
|
||||
else:
|
||||
fastStoreHudCache = False
|
||||
saveActions = True if import_options['saveActions'] == 'True' else False
|
||||
fastStoreHudCache = True if import_options['fastStoreHudCache'] == 'True' else False
|
||||
|
||||
t0 = time()
|
||||
fpdb_simple.fillCardArrays(len(names), base, category, card_values, card_suits)
|
||||
|
@ -121,14 +110,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()
|
||||
if import_options['saveActions'] == 'True':
|
||||
saveActions = True
|
||||
else:
|
||||
saveActions = False
|
||||
if import_options['fastStoreHudCache'] == 'True':
|
||||
fastStoreHudCache = True
|
||||
else:
|
||||
fastStoreHudCache = 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)
|
||||
|
@ -164,14 +147,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()
|
||||
if import_options['saveActions'] == 'True':
|
||||
saveActions = True
|
||||
else:
|
||||
saveActions = False
|
||||
if import_options['fastStoreHudCache'] == 'True':
|
||||
fastStoreHudCache = True
|
||||
else:
|
||||
fastStoreHudCache = 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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user