removed sending all values to client on watch/edit page
This commit is contained in:
parent
6b8b7eee58
commit
9be48742a9
1 changed files with 0 additions and 4 deletions
4
main.go
4
main.go
|
@ -567,9 +567,6 @@ func (web *Web) watchEdit(c *gin.Context) {
|
||||||
var connections []FilterConnection
|
var connections []FilterConnection
|
||||||
web.db.Model(&FilterConnection{}).Where("watch_id = ?", watch.ID).Find(&connections)
|
web.db.Model(&FilterConnection{}).Where("watch_id = ?", watch.ID).Find(&connections)
|
||||||
|
|
||||||
var values []FilterOutput
|
|
||||||
web.db.Model(&FilterOutput{}).Where("watch_id = ?", watch.ID).Find(&values)
|
|
||||||
|
|
||||||
notifiers := make([]string, 1)
|
notifiers := make([]string, 1)
|
||||||
notifiers = append(notifiers, "All")
|
notifiers = append(notifiers, "All")
|
||||||
for notifier := range web.notifiers {
|
for notifier := range web.notifiers {
|
||||||
|
@ -583,7 +580,6 @@ func (web *Web) watchEdit(c *gin.Context) {
|
||||||
"Watch": watch,
|
"Watch": watch,
|
||||||
"Filters": filters,
|
"Filters": filters,
|
||||||
"Connections": connections,
|
"Connections": connections,
|
||||||
"Values": values,
|
|
||||||
"Notifiers": notifiers,
|
"Notifiers": notifiers,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue