From 4098a0de815013c521618b6419d91f997c986ef0 Mon Sep 17 00:00:00 2001 From: François Schmidts Date: Fri, 29 Jan 2016 14:26:02 +0100 Subject: draft displaying article --- src/web/models/article.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/web/models') 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} -- cgit