fix: 뉴스 필터 트리 — 신문사명 정확 추출 + API datetime 수정

- PAPER_NAMES 매핑으로 'Le Monde', 'Der Spiegel' 등 정확 분리
- NewsSourceResponse datetime 타입 수정

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Hyungi Ahn
2026-04-06 15:18:50 +09:00
parent 3cd65e4c26
commit 8bb2ea4f29
2 changed files with 13 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
"""뉴스 소스 관리 API"""
from datetime import datetime
from typing import Annotated
from fastapi import APIRouter, Depends, HTTPException
@@ -24,8 +25,8 @@ class NewsSourceResponse(BaseModel):
category: str | None
language: str | None
enabled: bool
last_fetched_at: str | None
created_at: str
last_fetched_at: datetime | None = None
created_at: datetime | None = None
class Config:
from_attributes = True