fix: don't use different configuration keys, just add as 2nd argument

This commit is contained in:
Joe Schr
2022-02-02 12:45:03 +01:00
parent a3e045f69d
commit e84a58de28
4 changed files with 5 additions and 22 deletions

View File

@@ -61,12 +61,8 @@ def init_plotscript(config, markets: List, startup_candles: int = 0):
startup_candles, min_date)
no_trades = False
for arg_name in ['exportfilename', 'backtestfilename']:
filename = config.get(arg_name)
if filename is not None:
break
if config.get('no_trades', False):
filename = config.get("exportfilename")
if config.get("no_trades", False):
no_trades = True
elif config['trade_source'] == 'file':
if not filename.is_dir() and not filename.is_file():