Skip to content

Commit

Permalink
remove remaining refs to incorrect view name
Browse files Browse the repository at this point in the history
  • Loading branch information
smnorris committed Jan 10, 2024
1 parent acf6d79 commit 995fc35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion db/functions/wsg_linear_summary.sql
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ spawning_rearing_observed as (
sum(st_length(geom)) filter (where (h.spawning_wct is true or h.rearing_wct is true) and barriers_dams_dnstr is null and barriers_pscis_dnstr is null) as length_obsrvd_spawning_rearing_wct_accessible_a,
sum(st_length(geom)) filter (where (h.spawning_wct is true or h.rearing_wct is true) and barriers_anthropogenic_dnstr is null) as length_obsrvd_spawning_rearing_wct_accessible_b
from bcfishpass.streams_access_vw sv
left outer join bcfishpass.habitat_user_vw h on sv.segmented_stream_id = h.segmented_stream_id
left outer join bcfishpass.streams_habitat_known_vw h on sv.segmented_stream_id = h.segmented_stream_id
inner join bcfishpass.streams s on sv.segmented_stream_id = s.segmented_stream_id
group by watershed_group_code
),
Expand Down
2 changes: 1 addition & 1 deletion model/02_habitat_linear/sql/streams_model_habitat.sql
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ with habitat as (
left outer join bcfishpass.habitat_sk sk on s.segmented_stream_id = sk.segmented_stream_id
left outer join bcfishpass.habitat_st st on s.segmented_stream_id = st.segmented_stream_id
left outer join bcfishpass.habitat_wct wct on s.segmented_stream_id = wct.segmented_stream_id
left outer join bcfishpass.habitat_user_vw u on s.segmented_stream_id = u.segmented_stream_id
left outer join bcfishpass.streams_habitat_known_vw u on s.segmented_stream_id = u.segmented_stream_id
where s.watershed_group_code = :'wsg'
)

Expand Down

0 comments on commit 995fc35

Please sign in to comment.