From fd75d9e17f3355604cc4d93cd61b2ba3abab0e8e Mon Sep 17 00:00:00 2001 From: Roman Buryan Date: Mon, 23 Nov 2026 20:28:49 +0300 Subject: [PATCH] [PRISM] Add product/support quality counts to DB summary --- 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 11b3e4d..08a9c27 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')," + "'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))," "'sources',(select count(*) from prism.sources)," "'datasheets',(select count(*) from prism.sources where doc_type='datasheet')," "'specs',(select count(*) from prism.specs),"