diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-07-06 09:36:55 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-07-06 09:36:55 +0200 |
commit | d62810388ee103cc9cf7e091bf9ca3987947ad0a (patch) | |
tree | 677ce39b33e76f661bbc357dbd5297844f045bd8 /pyaggr3g470r | |
parent | reverse the list of users (diff) | |
download | newspipe-d62810388ee103cc9cf7e091bf9ca3987947ad0a.tar.gz newspipe-d62810388ee103cc9cf7e091bf9ca3987947ad0a.tar.bz2 newspipe-d62810388ee103cc9cf7e091bf9ca3987947ad0a.zip |
THe JSON REST API return the number of articles in a feed only for one feed.
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r-- | pyaggr3g470r/rest.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyaggr3g470r/rest.py b/pyaggr3g470r/rest.py index 14870a52..548b7a25 100644 --- a/pyaggr3g470r/rest.py +++ b/pyaggr3g470r/rest.py @@ -254,8 +254,7 @@ class FeedListAPI(Resource): "site_link": feed.site_link, "email_notification": feed.email_notification, "enabled": feed.enabled, - "created_date": feed.created_date, - "nb_articles": feed.articles.count() + "created_date": feed.created_date } for feed in g.user.feeds] ) @@ -310,7 +309,8 @@ class FeedAPI(Resource): "title": feed.title, "description": feed.description, "link": feed.link, - "site_link": feed.site_link + "site_link": feed.site_link, + "nb_articles": feed.articles.count() } for feed in result] ) |