1
0

Accidentally had double run_auto_sell.
Some checks failed
Verify Python project can be installed, loaded and have version checked / Test (push) Waiting to run
Run Python tests (through Pytest) / Test (push) Has been cancelled
Python Ruff Code Quality / ruff (push) Failing after 22s

This commit is contained in:
Jon Michael Aanes 2024-12-02 18:22:38 +01:00
parent 684e08de04
commit 2665aa0017
Signed by: Jmaa
SSH Key Fingerprint: SHA256:Ab0GfHGCblESJx7JRE4fj4bFy/KRpeLhi41y4pF3sNA
2 changed files with 4 additions and 5 deletions

View File

@ -307,11 +307,11 @@ def log_estimates(config: AutoSellConfig):
minisleep = 0.1 minisleep = 0.1
logger.info('') logger.info('')
logger.info('Welcome to crypto seller!') logger.info('Welcome to Crypto Seller!')
config.sleep(3) config.sleep(3)
logger.info('') logger.info('')
config.sleep(minisleep) 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) config.sleep(minisleep)
logger.info('now analyse your configuration and divine some estimates!') logger.info('now analyse your configuration and divine some estimates!')
config.sleep(3) config.sleep(3)

View File

@ -138,7 +138,7 @@ def main():
args = parse_args() args = parse_args()
# Setup output paths # Setup output paths
path_output = args.output_folder.absolute() path_output = args.output_directory.absolute()
path_output.mkdir(parents=True, exist_ok=True) path_output.mkdir(parents=True, exist_ok=True)
path_log_file = path_output / 'log.txt' path_log_file = path_output / 'log.txt'
path_trades_file = path_output / 'trades.csv' path_trades_file = path_output / 'trades.csv'
@ -147,7 +147,6 @@ def main():
logger.info('Initializing crypto_seller') logger.info('Initializing crypto_seller')
auto_sell_config = load_config(args.config_file, path_trades_file) auto_sell_config = load_config(args.config_file, path_trades_file)
results = run_auto_sell(auto_sell_config)
# Display estimates # Display estimates
try: try:
@ -158,7 +157,7 @@ def main():
# Run auto sell # Run auto sell
results = run_auto_sell( results = run_auto_sell(
auto_sell_config, 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 # Display results