From a891504d5af013c21acf2a0750c3822d1e3ce7b6 Mon Sep 17 00:00:00 2001 From: BroodjeAap Date: Sun, 22 Jan 2023 10:35:19 +0000 Subject: [PATCH] fixed a postgresql error in one of the queries --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index e5c0438..5269c4b 100644 --- a/main.go +++ b/main.go @@ -332,7 +332,7 @@ func (web *Web) index(c *gin.Context) { Select("watches.id, max(filter_outputs.time) as time, filter_outputs.value"). Joins("left join filter_outputs on filter_outputs.watch_id = watches.id"). Order("filter_outputs.name"). - Group("watches.id"). + Group("watches.id, time, filter_outputs.value, filter_outputs.name"). Rows() if err != nil {