Mercurial > gemma
diff pkg/controllers/fwa.go @ 5230:40c9acd114cd new-fwa
Added missing parameter to SQL query.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 12 May 2020 13:49:19 +0200 |
parents | f3a88039d822 |
children | 225b2d0a1824 |
line wrap: on
line diff
--- a/pkg/controllers/fwa.go Tue May 12 13:14:15 2020 +0200 +++ b/pkg/controllers/fwa.go Tue May 12 13:49:19 2020 +0200 @@ -246,7 +246,7 @@ // load values if err := bottlenecks[i].loadValues(ctx, conn, from, to, los); err != nil { log.Printf("error: %v\n", err) - http.Error(rw, "cannot load LDCs", http.StatusInternalServerError) + http.Error(rw, "cannot load values", http.StatusInternalServerError) return } } @@ -555,6 +555,7 @@ rows, err := conn.QueryContext( ctx, selectBottlenecksLimitingSQL, + bottleneckID, from, to) if err != nil {