mirror of
https://github.com/miniflux/v2.git
synced 2025-08-26 18:21:01 +00:00
show #unread per category in category list, not #feeds
the number of feeds in the category is currently displayed twice, and a lot less useful than the number of unread items in the category.
This commit is contained in:
parent
de53d8762f
commit
1c9f000576
15 changed files with 34 additions and 17 deletions
|
@ -8,10 +8,11 @@ import "fmt"
|
|||
|
||||
// Category represents a feed category.
|
||||
type Category struct {
|
||||
ID int64 `json:"id"`
|
||||
Title string `json:"title"`
|
||||
UserID int64 `json:"user_id"`
|
||||
FeedCount int `json:"-"`
|
||||
ID int64 `json:"id"`
|
||||
Title string `json:"title"`
|
||||
UserID int64 `json:"user_id"`
|
||||
FeedCount int `json:"-"`
|
||||
TotalUnread int `json:"-"`
|
||||
}
|
||||
|
||||
func (c *Category) String() string {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue