aboutsummaryrefslogtreecommitdiff
path: root/src/web/models
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2016-01-29 14:26:02 +0100
committerFrançois Schmidts <francois.schmidts@gmail.com>2016-01-29 14:26:02 +0100
commit4098a0de815013c521618b6419d91f997c986ef0 (patch)
treed8df5e60904924c65dccfd51333b67597b0b30fa /src/web/models
parentcorrecting awful middle panel action handling (diff)
downloadnewspipe-4098a0de815013c521618b6419d91f997c986ef0.tar.gz
newspipe-4098a0de815013c521618b6419d91f997c986ef0.tar.bz2
newspipe-4098a0de815013c521618b6419d91f997c986ef0.zip
draft displaying article
Diffstat (limited to 'src/web/models')
-rw-r--r--src/web/models/article.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/web/models/article.py b/src/web/models/article.py
index 91be9846..94fedf16 100644
--- a/src/web/models/article.py
+++ b/src/web/models/article.py
@@ -79,5 +79,5 @@ class Article(db.Model):
"like": self.like,
"date": self.date,
"retrieved_date": self.retrieved_date,
- "feed_id": getattr(self.source, 'id', None),
- "feed_name": getattr(self.source, 'title', None)}
+ "feed_id": self.feed_id,
+ "category_id": self.category_id}
bgstack15