diff --git a/model/02_habitat_linear/sql/habitat_co.sql b/model/02_habitat_linear/sql/habitat_co.sql index 26ee4ce8..4534c063 100644 --- a/model/02_habitat_linear/sql/habitat_co.sql +++ b/model/02_habitat_linear/sql/habitat_co.sql @@ -46,7 +46,7 @@ model AS INNER JOIN bcfishpass.wsg_species_presence p ON s.watershed_group_code = p.watershed_group_code LEFT OUTER JOIN rivers r ON s.waterbody_key = r.waterbody_key WHERE - p.ch is true AND + p.co is true AND s.watershed_group_code = :'wsg' AND -- streams and rivers only (