diff options
author | 2020-09-27 16:01:06 -0700 | |
---|---|---|
committer | 2020-09-27 20:04:48 -0700 | |
commit | c394a61a4e1fe395191262ed1ccaf70b90a71484 (patch) | |
tree | ca3080c4eeb29f3a01d47676be9521334e0696cd /ui/opml_upload.go | |
parent | 16b7b3bc3e4237abbacdf8695a685ca9a03dc5bb (diff) | |
download | v2-c394a61a4e1fe395191262ed1ccaf70b90a71484.tar.gz v2-c394a61a4e1fe395191262ed1ccaf70b90a71484.tar.zst v2-c394a61a4e1fe395191262ed1ccaf70b90a71484.zip |
Add Prometheus exporter
Diffstat (limited to 'ui/opml_upload.go')
-rw-r--r-- | ui/opml_upload.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/opml_upload.go b/ui/opml_upload.go index 6f9109bf..08430737 100644 --- a/ui/opml_upload.go +++ b/ui/opml_upload.go @@ -45,7 +45,7 @@ func (h *handler) uploadOPML(w http.ResponseWriter, r *http.Request) { view.Set("menu", "feeds") view.Set("user", user) view.Set("countUnread", h.store.CountUnreadEntries(user.ID)) - view.Set("countErrorFeeds", h.store.CountErrorFeeds(user.ID)) + view.Set("countErrorFeeds", h.store.CountUserFeedsWithErrors(user.ID)) if fileHeader.Size == 0 { view.Set("errorMessage", "error.empty_file") @@ -86,7 +86,7 @@ func (h *handler) fetchOPML(w http.ResponseWriter, r *http.Request) { view.Set("menu", "feeds") view.Set("user", user) view.Set("countUnread", h.store.CountUnreadEntries(user.ID)) - view.Set("countErrorFeeds", h.store.CountErrorFeeds(user.ID)) + view.Set("countErrorFeeds", h.store.CountUserFeedsWithErrors(user.ID)) clt := client.NewClientWithConfig(url, config.Opts) resp, err := clt.Get() |