phase 17: fix datetime JSON serialization in aggregation worker market_context

This commit is contained in:
Celes Renata
2026-04-12 03:31:32 -07:00
parent 48bf4f7e7e
commit 019eaa40d7
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -493,7 +493,7 @@ async def persist_trend_summary(
json.dumps(summary.material_risks),
summary.contradiction_score,
json.dumps([d.model_dump() for d in summary.disagreement_details]),
json.dumps(summary.market_context.model_dump() if summary.market_context else {}),
json.dumps(summary.market_context.model_dump() if summary.market_context else {}, default=str),
summary.generated_at,
)
return str(row["id"])