From 0684f15859e0d088161cea22afe5b9a62a0be695 Mon Sep 17 00:00:00 2001 From: fish Date: Sun, 26 Jul 2026 14:09:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E6=9C=9F=E5=AD=97=E6=AE=B5=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=91=A8=E5=87=A0=E6=98=BE=E7=A4=BA?= 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/routers/option_trades.py | 1 + ft-app/app/routers/trades.py | 1 + ft-app/app/templates/options.html | 6 +++--- ft-app/app/templates/trades.html | 6 +++--- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/ft-app/app/routers/option_trades.py b/ft-app/app/routers/option_trades.py index 54cf942..11810af 100644 --- a/ft-app/app/routers/option_trades.py +++ b/ft-app/app/routers/option_trades.py @@ -48,6 +48,7 @@ def option_page(request: Request, db: Session = Depends(get_db)): open_trades=open_trades, closed_trades=closed_trades, today=today_str(), + weekdays=["周一","周二","周三","周四","周五","周六","周日"], ) ) diff --git a/ft-app/app/routers/trades.py b/ft-app/app/routers/trades.py index fe8990a..50b4cd5 100644 --- a/ft-app/app/routers/trades.py +++ b/ft-app/app/routers/trades.py @@ -57,6 +57,7 @@ def trades_page(request: Request, db: Session = Depends(get_db)): open_trades=open_trades, closed_trades=closed_trades, today=today_str(), + weekdays=["周一","周二","周三","周四","周五","周六","周日"], ) ) diff --git a/ft-app/app/templates/options.html b/ft-app/app/templates/options.html index d1df1ae..f61ca83 100644 --- a/ft-app/app/templates/options.html +++ b/ft-app/app/templates/options.html @@ -113,7 +113,7 @@ {{ t.strike_price }} {{ t.open_price }} - {{ t.open_date }} + {{ t.open_date }} {{ weekdays[t.open_date.weekday()] }} {{ t.open_fee or 0 }}