유효하지 않은 KEY 가 설정되어 있어도, 일단 UI 페이지가 나오도록 수정.

This commit is contained in:
2026-07-17 00:37:58 +09:00
parent 5d4b9699ba
commit 4e9f912e5f
40 changed files with 93 additions and 12 deletions

View File

@@ -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,