Change dict update order

This commit is contained in:
Emre 2022-12-05 23:58:04 +03:00
parent 26a61afa15
commit 227cdb0938
No known key found for this signature in database
GPG Key ID: 0EAD2EE11B666ABA

View File

@ -360,7 +360,7 @@ def _validate_freqai_include_timeframes(conf: Dict[str, Any]) -> None:
feature_parameters = conf.get('freqai', {}).get('feature_parameters', {})
include_timeframes = [main_tf] + freqai_include_timeframes
conf.get('freqai', {}).get('feature_parameters', {}) \
.update({**feature_parameters, 'include_timeframes': include_timeframes})
.update({'include_timeframes': include_timeframes, **feature_parameters})
def _validate_freqai_backtest(conf: Dict[str, Any]) -> None: