fixed a postgresql error in one of the queries
This commit is contained in:
parent
af165c345a
commit
a891504d5a
1 changed files with 1 additions and 1 deletions
2
main.go
2
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").
|
Select("watches.id, max(filter_outputs.time) as time, filter_outputs.value").
|
||||||
Joins("left join filter_outputs on filter_outputs.watch_id = watches.id").
|
Joins("left join filter_outputs on filter_outputs.watch_id = watches.id").
|
||||||
Order("filter_outputs.name").
|
Order("filter_outputs.name").
|
||||||
Group("watches.id").
|
Group("watches.id, time, filter_outputs.value, filter_outputs.name").
|
||||||
Rows()
|
Rows()
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Reference in a new issue