Skip to content

Commit b35b5ae

Browse files
[NOREF] Removed archived plans from models by group query (#1984)
added archived clause to models by group
1 parent 494fa3a commit b35b5ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/sqlqueries/SQL/model_plan/get_by_component_group_key_LOADER.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ INNER JOIN plan_basics AS pb
2424
OR (cgm.component_group_key = 'FCHCO' AND coalesce(pb.cms_centers, cast(ARRAY[] AS CMS_CENTER[])) @> cast(ARRAY['FEDERAL_COORDINATED_HEALTH_CARE_OFFICE'] AS CMS_CENTER[]))
2525
)
2626
INNER JOIN model_plan AS mp ON pb.model_plan_id = mp.id
27+
WHERE mp.archived = FALSE
2728
ORDER BY component_group, model_plan_id;

0 commit comments

Comments
 (0)