Fix quality metric persistence ordering
GeoIntel CI / docs-smoke (push) Has been cancelled
GeoIntel CI / contract-smoke (push) Has been cancelled

This commit is contained in:
Codex
2026-06-17 00:36:35 +02:00
parent be7705f6c5
commit 12c370edd4
2 changed files with 7 additions and 0 deletions
+2
View File
@@ -39,6 +39,8 @@ class QualityService:
completed_at=datetime.now(timezone.utc),
)
db.add(quality_check)
if hasattr(db, "flush"):
db.flush()
for key, value in (metrics or {}).items():
db.add(