changeset 2884:fe3d5e824ee9

calculate interval boundaries for Nash Sutcliffe in right order.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 01 Apr 2019 18:31:52 +0200
parents 3473f3b72e21
children 190c84c712e8
files pkg/controllers/gauges.go
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/controllers/gauges.go	Mon Apr 01 18:25:53 2019 +0200
+++ b/pkg/controllers/gauges.go	Mon Apr 01 18:31:52 2019 +0200
@@ -50,7 +50,7 @@
     $5::int
   ) AND
   measure_date BETWEEN
-    $6::timestamp AND $6::timestamp - '72hours'::interval
+    $6::timestamp - '72hours'::interval AND $6::timestamp
 ORDER BY measure_date, date_issue
 `
 	selectWaterlevelsSQL = `