comparison pkg/imports/sr.go @ 1501:048d1891e004

Fixed problem with accepting sounding result imports and moving them out of the staging area.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 05 Dec 2018 11:00:53 +0100
parents 5df748916fcf
children 0abcc82ef976
comparison
equal deleted inserted replaced
1500:811497a8092f 1501:048d1891e004
100 } 100 }
101 101
102 const ( 102 const (
103 srStageDoneSQL = ` 103 srStageDoneSQL = `
104 UPDATE waterway.sounding_results SET staging_done = true 104 UPDATE waterway.sounding_results SET staging_done = true
105 WHERE id = $1` 105 WHERE id = (SELECT key from waterway.track_imports WHERE import_id = $1)`
106 106
107 insertPointsSQL = ` 107 insertPointsSQL = `
108 INSERT INTO waterway.sounding_results ( 108 INSERT INTO waterway.sounding_results (
109 bottleneck_id, 109 bottleneck_id,
110 date_info, 110 date_info,