Adapt after rebase

This commit is contained in:
Matthias 2019-11-15 06:49:58 +01:00
parent 65489c894d
commit 79891671e9

View File

@ -14,7 +14,6 @@ from freqtrade.configuration import (Configuration, TimeRange,
remove_credentials) remove_credentials)
from freqtrade.configuration.directory_operations import (copy_sample_files, from freqtrade.configuration.directory_operations import (copy_sample_files,
create_userdata_dir) create_userdata_dir)
from freqtrade.constants import DEFAULT_HYPEROPT, DEFAULT_STRATEGY
from freqtrade.data.history import (convert_trades_to_ohlcv, from freqtrade.data.history import (convert_trades_to_ohlcv,
refresh_backtest_ohlcv_data, refresh_backtest_ohlcv_data,
refresh_backtest_trades_data) refresh_backtest_trades_data)
@ -96,7 +95,7 @@ def start_new_strategy(args: Dict[str, Any]) -> None:
config = setup_utils_configuration(args, RunMode.UTIL_NO_EXCHANGE) config = setup_utils_configuration(args, RunMode.UTIL_NO_EXCHANGE)
if "strategy" in args and args["strategy"]: if "strategy" in args and args["strategy"]:
if args["strategy"] == DEFAULT_STRATEGY: if args["strategy"] == "DefaultStrategy":
raise OperationalException("DefaultStrategy is not allowed as name.") raise OperationalException("DefaultStrategy is not allowed as name.")
new_path = config['user_data_dir'] / "strategies" / (args["strategy"] + ".py") new_path = config['user_data_dir'] / "strategies" / (args["strategy"] + ".py")
@ -119,7 +118,7 @@ def start_new_hyperopt(args: Dict[str, Any]) -> None:
config = setup_utils_configuration(args, RunMode.UTIL_NO_EXCHANGE) config = setup_utils_configuration(args, RunMode.UTIL_NO_EXCHANGE)
if "hyperopt" in args and args["hyperopt"]: if "hyperopt" in args and args["hyperopt"]:
if args["hyperopt"] == DEFAULT_HYPEROPT: if args["hyperopt"] == "DefaultHyperopt":
raise OperationalException("DefaultHyperOpt is not allowed as name.") raise OperationalException("DefaultHyperOpt is not allowed as name.")
new_path = config['user_data_dir'] / "hyperopts" / (args["hyperopt"] + ".py") new_path = config['user_data_dir'] / "hyperopts" / (args["hyperopt"] + ".py")