Skip to content

Commit

Permalink
fix variable name: diagPrices -> diag_prices
Browse files Browse the repository at this point in the history
  • Loading branch information
bug-or-feature committed Nov 3, 2024
1 parent 33f4830 commit b897a09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sysinit/futures/multiple_and_adjusted_from_csv_to_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ def init_db_with_csv_prices_for_code(
):
print(instrument_code)
csv_mult_data = csvFuturesMultiplePricesData(multiple_price_datapath)
db_mult_data = diagPrices.db_futures_multiple_prices_data
db_mult_data = diag_prices.db_futures_multiple_prices_data

mult_prices = csv_mult_data.get_multiple_prices(instrument_code)
db_mult_data.add_multiple_prices(
instrument_code, mult_prices, ignore_duplication=True
)

csv_adj_data = csvFuturesAdjustedPricesData(adj_price_datapath)
db_adj_data = diagPrices.db_futures_adjusted_prices_data
db_adj_data = diag_prices.db_futures_adjusted_prices_data

adj_prices = csv_adj_data.get_adjusted_prices(instrument_code)
db_adj_data.add_adjusted_prices(
Expand Down

0 comments on commit b897a09

Please sign in to comment.