aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/web/js/components/RightPanel.react.js2
-rw-r--r--src/web/models/feed.py3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/web/js/components/RightPanel.react.js b/src/web/js/components/RightPanel.react.js
index 7af0aa75..39b06f38 100644
--- a/src/web/js/components/RightPanel.react.js
+++ b/src/web/js/components/RightPanel.react.js
@@ -317,6 +317,8 @@ var Feed = React.createClass({
<dd><JarrTime stamp={this.props.obj.last_stamp}
text={this.props.obj.last_retrieved} />
</dd>
+ <dt>Number of articles</dt>
+ <dd>{this.props.obj.nb_articles}</dd>
</dl>
{this.getErrorFields()}
{this.getCategorySelect()}
diff --git a/src/web/models/feed.py b/src/web/models/feed.py
index b0df0d16..6c2a5945 100644
--- a/src/web/models/feed.py
+++ b/src/web/models/feed.py
@@ -80,4 +80,5 @@ class Feed(db.Model):
"last_error": self.last_error,
"created_date": self.created_date,
"last_modified": self.last_modified,
- "last_retrieved": self.last_retrieved}
+ "last_retrieved": self.last_retrieved,
+ "nb_articles": self.articles.count()}
bgstack15