유효하지 않은 KEY 가 설정되어 있어도, 일단 UI 페이지가 나오도록 수정.
This commit is contained in:
@@ -3,6 +3,7 @@ from __future__ import annotations
|
||||
from fastapi import APIRouter, Depends
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
from app.core.auth import token_manager
|
||||
from app.core.database import get_db
|
||||
from app.models.stock import Holding, PriceHistory, Strategy, Trade, Stock
|
||||
from app.engine.scheduler import scheduler
|
||||
@@ -31,6 +32,7 @@ def dashboard(db: Session = Depends(get_db)) -> dict:
|
||||
})
|
||||
|
||||
return {
|
||||
"authenticated": token_manager.is_authenticated,
|
||||
"summary": {
|
||||
"total_holdings": len(holdings),
|
||||
"total_profit": total_profit,
|
||||
|
||||
Reference in New Issue
Block a user