commit b867a53716e335065e0dcf8a6d0682eaebb13a07
parent c00a73322473bc9ab73201e99ab87fe8a05c126c
Author: Paco Esteban <paco@e1e0.net>
Date: Sat, 1 Aug 2020 17:58:16 +0200
getCategories api fixed upstream
they accepted my PR, so we can now list categories
Diffstat:
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/cmd/ttrss-cli/main.go b/cmd/ttrss-cli/main.go
@@ -71,7 +71,7 @@ func main() {
}
for _, cat := range categories {
- fmt.Printf("%s \n", cat.Title)
+ fmt.Printf("(%d) %s \n", cat.Id, cat.Title)
}
return nil
},
diff --git a/pkg/ttrss/ttrss.go b/pkg/ttrss/ttrss.go
@@ -63,10 +63,10 @@ type Feed struct {
}
type Category struct {
- Id interface{} `json:"id"`
- Title string `json:"title"`
- Unread interface{} `json:"unread"`
- OrderId int `json:"order_id"`
+ Id int `json:"id"`
+ Title string `json:"title"`
+ Unread int `json:"unread"`
+ OrderId int `json:"order_id"`
}
type FeedSub struct {