구조적인 부분 수정
This commit is contained in:
@@ -10,6 +10,9 @@
|
||||
from datetime import datetime, timedelta
|
||||
import random
|
||||
import logging
|
||||
import pytz
|
||||
|
||||
_KST = pytz.timezone("Asia/Seoul")
|
||||
|
||||
from fastapi import APIRouter, HTTPException, Query, Depends
|
||||
from typing import List, Dict
|
||||
@@ -693,7 +696,7 @@ async def get_ai_analysis(stock_code: str, db: AsyncSession = Depends(get_db)):
|
||||
"recommendation": recommendation,
|
||||
"confidence": confidence,
|
||||
"trend": trend,
|
||||
"analyzed_at": datetime.now().isoformat(),
|
||||
"analyzed_at": datetime.now(_KST).isoformat(), # KST +09:00 포함
|
||||
}
|
||||
|
||||
except HTTPException:
|
||||
|
||||
Reference in New Issue
Block a user