mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
chore: Fix fstring incompatibility with older python versions
This commit is contained in:
parent
b208f978db
commit
64d22bbd89
|
@ -101,7 +101,7 @@ class HyperoptOutput:
|
|||
# "Avg duration":
|
||||
str(r["results_metrics"]["holding_avg"]),
|
||||
# "Objective":
|
||||
f"{r["loss"]:,.5f}" if r["loss"] != 100000 else "N/A",
|
||||
f"{r['loss']:,.5f}" if r["loss"] != 100000 else "N/A",
|
||||
# "Max Drawdown (Acct)":
|
||||
"{} {}".format(
|
||||
fmt_coin(
|
||||
|
@ -109,7 +109,7 @@ class HyperoptOutput:
|
|||
stake_currency,
|
||||
keep_trailing_zeros=True,
|
||||
),
|
||||
(f"({r["results_metrics"]['max_drawdown_account']:,.2%})").rjust(10, " "),
|
||||
(f"({r['results_metrics']['max_drawdown_account']:,.2%})").rjust(10, " "),
|
||||
)
|
||||
if r["results_metrics"]["max_drawdown_account"] != 0.0
|
||||
else "--",
|
||||
|
|
Loading…
Reference in New Issue
Block a user