aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-07-06 09:36:55 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-07-06 09:36:55 +0200
commitd62810388ee103cc9cf7e091bf9ca3987947ad0a (patch)
tree677ce39b33e76f661bbc357dbd5297844f045bd8 /pyaggr3g470r
parentreverse the list of users (diff)
downloadnewspipe-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.py6
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]
)
bgstack15