Merge pull request #5834 from raph92/patch-4

Update optimize_reports
This commit is contained in:
Matthias 2021-11-04 16:56:21 +01:00 committed by GitHub
commit 26e5418519
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -797,7 +797,7 @@ def show_backtest_result(strategy: str, results: Dict[str, Any], stake_currency:
print(' BACKTESTING REPORT '.center(len(table.splitlines()[0]), '=')) print(' BACKTESTING REPORT '.center(len(table.splitlines()[0]), '='))
print(table) print(table)
if(results['results_per_buy_tag'] is not None): if results.get('results_per_buy_tag') is not None:
table = text_table_tags( table = text_table_tags(
"buy_tag", "buy_tag",
results['results_per_buy_tag'], results['results_per_buy_tag'],