# HG changeset patch # User Sascha L. Teichmann # Date 1545130433 -3600 # Node ID 1835d1c9eb9b1bb30f67e59e3e68dfc3c3dbf715 # Parent 2ee243f9a7ee33ce6c9e5cae9f4162899eee5044 Store bottleneck_id's instead of id's in bottleneck import summary. diff -r 2ee243f9a7ee -r 1835d1c9eb9b pkg/imports/bn.go --- 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, }