Add persistent multi-tag include and exclude filters
This commit is contained in:
@@ -237,7 +237,7 @@ func (s *Server) dashboard(w http.ResponseWriter, r *http.Request) {
|
||||
respond(w, nil, errors.New("from must not exceed to"))
|
||||
return
|
||||
}
|
||||
v, e := s.app.Dashboard(r.Context(), analytics.Filter{From: from, To: to, Currency: q.Get("currency"), AccountID: q.Get("account_id"), CategoryID: q.Get("category_id"), TagID: q.Get("tag_id"), MerchantID: q.Get("merchant_id")})
|
||||
v, e := s.app.Dashboard(r.Context(), analytics.Filter{From: from, To: to, Currency: q.Get("currency"), AccountID: q.Get("account_id"), CategoryID: q.Get("category_id"), TagIDs: q["tag_ids"], ExcludeTagIDs: q["exclude_tag_ids"], MerchantID: q.Get("merchant_id")})
|
||||
respond(w, v, e)
|
||||
}
|
||||
func (s *Server) account(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
Reference in New Issue
Block a user