Mercurial > gemma
diff pkg/imports/bn.go @ 1611:1835d1c9eb9b
Store bottleneck_id's instead of id's in bottleneck import summary.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 18 Dec 2018 11:53:53 +0100 |
parents | f6596daf2079 |
children | 6ee06eb37fa9 |
line wrap: on
line diff
--- a/pkg/imports/bn.go Tue Dec 18 09:33:34 2018 +0100 +++ b/pkg/imports/bn.go Tue Dec 18 11:53:53 2018 +0100 @@ -180,7 +180,7 @@ defer (*x.stmt).Close() } - var nids []int64 + var nids []string start := time.Now() @@ -231,7 +231,7 @@ if err != nil { return nil, err } - nids = append(nids, nid) + nids = append(nids, bn.Bottleneck_id) if _, err := trackStmt.ExecContext( ctx, importID, "waterway.bottlenecks", nid, ); err != nil { @@ -251,7 +251,7 @@ // TODO: needs to be filled more useful. summary := struct { - Bottlenecks []int64 `json:"bottlenecks"` + Bottlenecks []string `json:"bottlenecks"` }{ Bottlenecks: nids, }