changeset 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 0b051ee3f238
children 225b2d0a1824
files pkg/controllers/fwa.go
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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 {