From 2665aa0017778c37bb0a18849ce7f941a4bcf7f6 Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Mon, 2 Dec 2024 18:22:38 +0100 Subject: [PATCH] Accidentally had double run_auto_sell. --- crypto_seller/__init__.py | 4 ++-- crypto_seller/__main__.py | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/crypto_seller/__init__.py b/crypto_seller/__init__.py index 95d10c6..4f756f4 100644 --- a/crypto_seller/__init__.py +++ b/crypto_seller/__init__.py @@ -307,11 +307,11 @@ def log_estimates(config: AutoSellConfig): minisleep = 0.1 logger.info('') - logger.info('Welcome to crypto seller!') + logger.info('Welcome to Crypto Seller!') config.sleep(3) logger.info('') config.sleep(minisleep) - logger.info('I, the great crypto seller, your humble servant, will') + logger.info('I, the great Crypto Seller, your humble servant, will') config.sleep(minisleep) logger.info('now analyse your configuration and divine some estimates!') config.sleep(3) diff --git a/crypto_seller/__main__.py b/crypto_seller/__main__.py index c26935a..4f655b0 100644 --- a/crypto_seller/__main__.py +++ b/crypto_seller/__main__.py @@ -138,7 +138,7 @@ def main(): args = parse_args() # Setup output paths - path_output = args.output_folder.absolute() + path_output = args.output_directory.absolute() path_output.mkdir(parents=True, exist_ok=True) path_log_file = path_output / 'log.txt' path_trades_file = path_output / 'trades.csv' @@ -147,7 +147,6 @@ def main(): logger.info('Initializing crypto_seller') auto_sell_config = load_config(args.config_file, path_trades_file) - results = run_auto_sell(auto_sell_config) # Display estimates try: @@ -158,7 +157,7 @@ def main(): # Run auto sell results = run_auto_sell( auto_sell_config, - initial_rounds_to_skip=args.wait_before_first and 1 or 0, + initial_rounds_to_skip=(args.wait_before_first and 1) or 0, ) # Display results