fix handling timeframes
This commit is contained in:
		| @@ -484,7 +484,6 @@ class Arguments(object): | ||||
|                   Default: %(default)s.', | ||||
|             choices=['1m', '3m', '5m', '15m', '30m', '1h', '2h', '4h', | ||||
|                      '6h', '8h', '12h', '1d', '3d', '1w'], | ||||
|             default=['1m', '5m'], | ||||
|             nargs='+', | ||||
|             dest='timeframes', | ||||
|         ) | ||||
|   | ||||
| @@ -50,8 +50,10 @@ if args.config: | ||||
|  | ||||
|     pairs = config['exchange']['pair_whitelist'] | ||||
|  | ||||
|     # Don't fail if ticker_interval is not in the configuration | ||||
|     timeframes = [config.get('ticker_interval')] | ||||
|     if config.get('ticker_interval'): | ||||
|         timeframes = args.timeframes or [config.get('ticker_interval')] | ||||
|     else: | ||||
|         timeframes = args.timeframes or ['1m', '5m'] | ||||
|  | ||||
| else: | ||||
|     config = { | ||||
| @@ -68,8 +70,7 @@ else: | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|  | ||||
| timeframes = args.timeframes | ||||
|     timeframes = args.timeframes or ['1m', '5m'] | ||||
|  | ||||
| configuration._load_logging_config(config) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user