remove report and old output format

This commit is contained in:
jaehwang committed 2026-01-30 00:34:38 +00:00
1 parent 2e27eb5742
commit abd098e4c0
2 files changed
+112 -19

No files matched your search

+3 -11
View File
@@ -24,8 +24,8 @@ from app.home.schemas.home_schema import (
ImageUploadResponse,
ImageUploadResultItem,
ImageUrlItem,
MarketingAnalysis,
ProcessedInfo,
# MarketingAnalysis,
)
from app.home.services.naver_search import naver_search_client
from app.utils.upload_blob_as_request import AzureBlobUploader
@@ -306,16 +306,8 @@ async def _crawling_logic(url:str):
f"structured_report = {structured_report.model_dump()}"
)
marketing_analysis = MarketingAnalysis(
report = structured_report
# report = structured_report["report"],
# tags=structured_report["tags"],
# selling_points = structured_report["selling_points"]# list([sp['keywords'] for sp in structured_report["selling_points"]])# [json.dumps(structured_report["selling_points"])] # 나중에 Selling Points로 변수와 데이터구조 변경할 것
)
# Selling Points 구조
# print(sp['category'])
# print(sp['keywords'])
# print(sp['description'])
marketing_analysis = structured_report
step3_4_elapsed = (time.perf_counter() - step3_4_start) * 1000
logger.debug(
f"[crawling] Step 3-4: 응답 파싱 완료 ({step3_4_elapsed:.1f}ms)"