Add workflow provenance quality metrics and classification

This commit is contained in:
ي committed 2026-03-06 21:42:14 +05:30
1 parent 5d49351c2d
commit 84babd0407
2 files changed
+97 -1

No files matched your search

+4
View File
@@ -139,6 +139,9 @@ async def get_today_workflow(
except Exception:
pass
plan_json = plan.plan_json if isinstance(plan.plan_json, dict) else {}
quality = plan_json.get("quality") if isinstance(plan_json.get("quality"), dict) else None
return {
"success": True,
"data": {
@@ -158,6 +161,7 @@ async def get_today_workflow(
"id": plan.id,
"date": plan.date,
"source": plan.source,
"quality": quality,
"created_at": plan.created_at.isoformat() if plan.created_at else None,
"updated_at": plan.updated_at.isoformat() if plan.updated_at else None,
},