Mercurial > gemma
changeset 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 | 2ee243f9a7ee |
children | b5061deb9ab9 |
files | pkg/imports/bn.go |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
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, }