aboutsummaryrefslogtreecommitdiff
path: root/internal/storage/feed.go
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <f@miniflux.net> 2023-10-20 15:12:02 -0700
committerGravatar Frédéric Guillot <f@miniflux.net> 2023-10-20 16:07:18 -0700
commit4cc99881d870495ef35dcbb44d351e4b3c01f401 (patch)
tree46c1408d9a8eba7fdf7633201902e18c6094e579 /internal/storage/feed.go
parent95ee1c423b1157a967fb2024aa86bd395ead23f8 (diff)
downloadv2-4cc99881d870495ef35dcbb44d351e4b3c01f401.tar.gz
v2-4cc99881d870495ef35dcbb44d351e4b3c01f401.tar.zst
v2-4cc99881d870495ef35dcbb44d351e4b3c01f401.zip
Refactor Batch Builder and prevent accidental and excessive refreshes from the web ui
Diffstat (limited to 'internal/storage/feed.go')
-rw-r--r--internal/storage/feed.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/internal/storage/feed.go b/internal/storage/feed.go
index b7f52e65..f365591e 100644
--- a/internal/storage/feed.go
+++ b/internal/storage/feed.go
@@ -87,17 +87,6 @@ func (s *Storage) CountAllFeeds() map[string]int64 {
return results
}
-// CountFeeds returns the number of feeds that belongs to the given user.
-func (s *Storage) CountFeeds(userID int64) int {
- var result int
- err := s.db.QueryRow(`SELECT count(*) FROM feeds WHERE user_id=$1`, userID).Scan(&result)
- if err != nil {
- return 0
- }
-
- return result
-}
-
// CountUserFeedsWithErrors returns the number of feeds with parsing errors that belong to the given user.
func (s *Storage) CountUserFeedsWithErrors(userID int64) int {
pollingParsingErrorLimit := config.Opts.PollingParsingErrorLimit()