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 }}