Mercurial > gemma
changeset 1658:07f996b0e14a
Bottleneck import: Cleaned up source a bit (removed outdated TODOs).
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 21 Dec 2018 12:15:54 +0100 |
parents | c354631e0018 |
children | 897e7cad7e77 |
files | pkg/imports/bn.go |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/pkg/imports/bn.go Fri Dec 21 10:33:49 2018 +0100 +++ b/pkg/imports/bn.go Fri Dec 21 12:15:54 2018 +0100 @@ -36,7 +36,7 @@ hasBottleneckSQL = ` SELECT true FROM waterway.bottlenecks WHERE bottleneck_id = $1` - insertSQL = ` + insertBottleneckSQL = ` INSERT INTO waterway.bottlenecks ( bottleneck_id, fk_g_fid, @@ -99,7 +99,6 @@ } const ( - // TODO: waterway.bottlenecks needs an integer id column. bnStageDoneSQL = ` UPDATE waterway.bottlenecks SET staging_done = true WHERE id IN ( @@ -178,7 +177,7 @@ stmt **sql.Stmt }{ {hasBottleneckSQL, &hasStmt}, - {insertSQL, &insertStmt}, + {insertBottleneckSQL, &insertStmt}, {trackImportSQL, &trackStmt}, } { var err error @@ -257,7 +256,6 @@ feedback.Info("Import of bottlenecks was successful") } - // TODO: needs to be filled more useful. summary := struct { Bottlenecks []string `json:"bottlenecks"` }{