Skip to content

Commit

Permalink
Fix errors: avoid using boolean positional arguments when calling fun…
Browse files Browse the repository at this point in the history
…ctions
  • Loading branch information
woctezuma committed Dec 3, 2024
1 parent 2bd2890 commit 8e593ad
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions market_gamble_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/market_arbitrage_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/sack_of_gems.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 8e593ad

Please sign in to comment.