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),"