diff options
author | François Schmidts <francois.schmidts@gmail.com> | 2016-01-29 14:26:02 +0100 |
---|---|---|
committer | François Schmidts <francois.schmidts@gmail.com> | 2016-01-29 14:26:02 +0100 |
commit | 4098a0de815013c521618b6419d91f997c986ef0 (patch) | |
tree | d8df5e60904924c65dccfd51333b67597b0b30fa /src/web/models/article.py | |
parent | correcting awful middle panel action handling (diff) | |
download | newspipe-4098a0de815013c521618b6419d91f997c986ef0.tar.gz newspipe-4098a0de815013c521618b6419d91f997c986ef0.tar.bz2 newspipe-4098a0de815013c521618b6419d91f997c986ef0.zip |
draft displaying article
Diffstat (limited to 'src/web/models/article.py')
-rw-r--r-- | src/web/models/article.py | 4 |
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} |