From 8e593adcf01a5a43e83bd2e2fc1657f0406d2774 Mon Sep 17 00:00:00 2001 From: Wok Date: Tue, 3 Dec 2024 22:37:05 +0100 Subject: [PATCH] Fix errors: avoid using boolean positional arguments when calling functions --- market_gamble_detector.py | 8 ++++---- src/market_arbitrage_utils.py | 2 +- src/sack_of_gems.py | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/market_gamble_detector.py b/market_gamble_detector.py index b34c24a..e87c57d 100644 --- a/market_gamble_detector.py +++ b/market_gamble_detector.py @@ -135,10 +135,10 @@ def main( market_order_dict = get_market_orders( filtered_badge_data, - retrieve_market_orders_online, - focus_on_listing_hashes_never_seen_before, - listing_details_output_file_name, - market_order_output_file_name, + retrieve_market_orders_online=retrieve_market_orders_online, + focus_on_listing_hashes_never_seen_before=focus_on_listing_hashes_never_seen_before, + listing_details_output_file_name=listing_details_output_file_name, + market_order_output_file_name=market_order_output_file_name, enforce_cooldown=enforce_cooldown, allow_to_skip_dummy_data=allow_to_skip_dummy_data, verbose=verbose, diff --git a/src/market_arbitrage_utils.py b/src/market_arbitrage_utils.py index d6cb93a..1fdfb70 100644 --- a/src/market_arbitrage_utils.py +++ b/src/market_arbitrage_utils.py @@ -377,7 +377,7 @@ def get_filtered_badge_data( from_javascript: bool = False, ) -> dict[str, dict]: aggregated_badge_data = load_aggregated_badge_data( - retrieve_listings_from_scratch, + retrieve_listings_from_scratch=retrieve_listings_from_scratch, enforced_sack_of_gems_price=enforced_sack_of_gems_price, minimum_allowed_sack_of_gems_price=minimum_allowed_sack_of_gems_price, from_javascript=from_javascript, diff --git a/src/sack_of_gems.py b/src/sack_of_gems.py index 0494206..861c032 100644 --- a/src/sack_of_gems.py +++ b/src/sack_of_gems.py @@ -39,7 +39,7 @@ def download_sack_of_gems_price( bid_price, ask_price, bid_volume, ask_volume = download_market_order_data( listing_hash, item_nameid, - verbose, + verbose=verbose, ) listing_details[listing_hash]["bid"] = bid_price listing_details[listing_hash]["ask"] = ask_price @@ -95,7 +95,7 @@ def get_gem_price( ) -> float: if enforced_sack_of_gems_price is None: sack_of_gems_price = load_sack_of_gems_price( - retrieve_gem_price_from_scratch, + retrieve_gem_price_from_scratch=retrieve_gem_price_from_scratch, verbose=verbose, ) else: