diff --git a/ft-app/app/templates/summary.html b/ft-app/app/templates/summary.html index 00d81fa..a388188 100644 --- a/ft-app/app/templates/summary.html +++ b/ft-app/app/templates/summary.html @@ -54,8 +54,8 @@
η›ˆδΊζ―”
-
- {{ "%.2f"|format(profit_ratio) }} +
+ {% if total_loss == 0 and total_profit > 0 %}∞{% else %}{{ "%.2f"|format(profit_ratio) }}{% endif %}