Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
prep for prod deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Brez committed May 21, 2018
1 parent c920646 commit 4bc399f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "flood-web-viewer",
"version": "3.0.1",
"release": "Sheepshead",
"site_url": "develop.texasflood.org",
"version": "3.0.2",
"release": "Gizzard Shad",
"site_url": "map.texasflood.org",
"description": "Texas flood information web viewer",
"private": true,
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/actions/InitializationActions.es
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { setGageInit } from './MapActions'
//with the current stage of all flood gauges
export function retrieveGageStatus() {
return (dispatch) => {
const query = `SELECT lid, name, stage, sigstage, wfo, latitude, longitude, timestamp FROM nws_ahps_gauges_texas_develop`
const query = `SELECT lid, name, stage, sigstage, wfo, latitude, longitude, timestamp FROM nws_ahps_gauges_texas`
return axios.get(`https://tnris-flood.cartodb.com/api/v2/sql?q=${query}`)
.then(({data}) => {
const formatState = data.rows.map((gage) => {
Expand Down
4 changes: 2 additions & 2 deletions src/cartodb/nws-ahps-gauges-texas.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SELECT * FROM nws_ahps_gauges_texas_develop
SELECT * FROM nws_ahps_gauges_texas
LEFT JOIN
(VALUES
('major', 90),
Expand All @@ -10,5 +10,5 @@ SELECT * FROM nws_ahps_gauges_texas_develop
('low', 30),
('', 20)
) as render_order(r_sigstage, render_z)
ON render_order.r_sigstage = concat('', nws_ahps_gauges_texas_develop.sigstage)
ON render_order.r_sigstage = concat('', nws_ahps_gauges_texas.sigstage)
ORDER BY render_z asc
2 changes: 1 addition & 1 deletion src/components/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export default class Map extends Component {
if (this.props.match.params.lid) {
const upperLid = this.props.match.params.lid.toUpperCase()
const query = (
`SELECT latitude, longitude, name, wfo FROM nws_ahps_gauges_texas_develop WHERE lid = '${upperLid}'`
`SELECT latitude, longitude, name, wfo FROM nws_ahps_gauges_texas WHERE lid = '${upperLid}'`
)
axios.get(`https://tnris-flood.cartodb.com/api/v2/sql?q=${query}`)
.then(({data}) => {
Expand Down

0 comments on commit 4bc399f

Please sign in to comment.