From 51792ce4b3851872656ccd0c97b4f68da3a6a47e Mon Sep 17 00:00:00 2001 From: fish Date: Tue, 28 Jul 2026 15:32:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A8=E8=83=9C=E6=97=B6=E7=9B=88=E4=BA=8F?= =?UTF-8?q?=E6=AF=94=E6=98=BE=E7=A4=BA=E2=88=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 --- ft-app/app/templates/summary.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 %}