Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 19, 2024
1 parent f0bef81 commit 1a38c11
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions swmm_views/08_vw_swmm_outfalls.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ SELECT
wn.obj_id as Name,
coalesce(wn.bottom_level,0) as InvertElev,
-- 'FREE'::varchar as Type,
CASE
CASE
WHEN dp.waterlevel_hydraulic IS NOT NULL THEN 'FIXED'
ELSE 'FREE'
END as Type, -- Type of outfall boundary condition: FREE: outfall stage determined by minimum of critical flow depth and normal flow depth in the connecting conduit. NORMAL: outfall stage based on normal flow depth in the connecting conduit. FIXED: outfall stage set to a fixed value. TIDAL: outfall stage given by a table of tide elevation versus time of day. TIMESERIES: outfall stage supplied from a time series of elevations
-- 0 as StageData,
CASE
CASE
WHEN dp.waterlevel_hydraulic IS NOT NULL THEN waterlevel_hydraulic
ELSE 0
END as StageData,
Expand Down Expand Up @@ -45,12 +45,12 @@ SELECT
wn.obj_id as Name,
coalesce(wn.bottom_level,0) as InvertElev,
-- 'FREE'::varchar as Type,
CASE
CASE
WHEN dp.waterlevel_hydraulic IS NOT NULL THEN 'FIXED'
ELSE 'FREE'
END as Type, -- Type of outfall boundary condition: FREE: outfall stage determined by minimum of critical flow depth and normal flow depth in the connecting conduit. NORMAL: outfall stage based on normal flow depth in the connecting conduit. FIXED: outfall stage set to a fixed value. TIDAL: outfall stage given by a table of tide elevation versus time of day. TIMESERIES: outfall stage supplied from a time series of elevations
-- 0 as StageData,
CASE
CASE
WHEN dp.waterlevel_hydraulic IS NOT NULL THEN waterlevel_hydraulic
ELSE 0
END as StageData,
Expand Down
2 changes: 1 addition & 1 deletion swmm_views/23_vw_swmm_xsections.sql
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ SELECT DISTINCT
0 as Geom4,
1 as Barrels,
0 as Culvert, -- default set to 0 instead of NULL
CASE
CASE
WHEN ws_st.vsacode IN (7959, 6529, 6526) THEN 'planned'
ELSE 'current'
END as state,
Expand Down

0 comments on commit 1a38c11

Please sign in to comment.