* control: filtering/refresh: force update filters

This commit is contained in:
Simon Zolin 2019-03-19 14:28:12 +03:00
parent 6f56eb4c12
commit d7b1825cf5

View File

@ -738,8 +738,7 @@ func handleFilteringSetRules(w http.ResponseWriter, r *http.Request) {
func handleFilteringRefresh(w http.ResponseWriter, r *http.Request) { func handleFilteringRefresh(w http.ResponseWriter, r *http.Request) {
log.Tracef("%s %v", r.Method, r.URL) log.Tracef("%s %v", r.Method, r.URL)
force := r.URL.Query().Get("force") updated := refreshFiltersIfNecessary(true)
updated := refreshFiltersIfNecessary(force != "")
fmt.Fprintf(w, "OK %d filters updated\n", updated) fmt.Fprintf(w, "OK %d filters updated\n", updated)
} }