From 94d3e65ebf580c673ed4fc791374e4fa9da37657 Mon Sep 17 00:00:00 2001 From: Roman Buryan Date: Mon, 23 Nov 2026 21:09:45 +0300 Subject: [PATCH] [PRISM] Align summary counts with quality_status --- ops/work/web/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ops/work/web/app.py b/ops/work/web/app.py index ac58a2a..17e9f98 100644 --- a/ops/work/web/app.py +++ b/ops/work/web/app.py @@ -1679,7 +1679,7 @@ def prism_summary(): "select json_build_object(" "'models',(select count(*) from prism.models)," "'source_ok',(select count(*) from prism.models where status='source_ok')," - "'needs_source',(select count(*) from prism.models where status='needs_source'),'products',(select count(*) from prism.models where (quality->>'is_product')::boolean),'support_articles',(select count(*) from prism.models where not coalesce((quality->>'is_product')::boolean,false))," + "'needs_source',(select count(*) from prism.models where status='needs_source'),'products',(select count(*) from prism.models where quality_status='product'),'non_vcs',(select count(*) from prism.models where quality_status='non_vcs_product'),'support_articles',(select count(*) from prism.models where quality_status='support_article')," "'sources',(select count(*) from prism.sources)," "'datasheets',(select count(*) from prism.sources where doc_type='datasheet')," "'specs',(select count(*) from prism.specs),"