feat: 更新接口返回值

This commit is contained in:
2026-09-04 21:28:19 +08:00
parent 86a0d64182
commit abacbe7a5d
4 changed files with 10 additions and 8 deletions

View File

@@ -53,7 +53,7 @@ def get_latest_article(db: Session):
)
article = result.scalar_one_or_none()
return article
return article.content
def query_recipe_agent(db: Session):
@@ -97,9 +97,9 @@ def get_latest_recipe(db: Session):
result = db.execute(
select(Recipe).where(Recipe.date == today)
)
article = result.scalar_one_or_none()
recipe = result.scalar_one_or_none()
return article
return recipe.content
def query_report_agent(req: ReportAgentRequest):