aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/models
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2015-03-03 22:16:24 +0100
committerFrançois Schmidts <francois.schmidts@gmail.com>2015-03-03 22:23:47 +0100
commita6769fc5f2c84aa079944d28a6b6505c3cc12370 (patch)
tree37701adffb59ffd64656ec306a7e10641c36a0ca /pyaggr3g470r/models
parentadding some docstring (diff)
downloadnewspipe-a6769fc5f2c84aa079944d28a6b6505c3cc12370.tar.gz
newspipe-a6769fc5f2c84aa079944d28a6b6505c3cc12370.tar.bz2
newspipe-a6769fc5f2c84aa079944d28a6b6505c3cc12370.zip
fixing the multi api
Diffstat (limited to 'pyaggr3g470r/models')
-rw-r--r--pyaggr3g470r/models/article.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyaggr3g470r/models/article.py b/pyaggr3g470r/models/article.py
index 2b79c6aa..0466bc35 100644
--- a/pyaggr3g470r/models/article.py
+++ b/pyaggr3g470r/models/article.py
@@ -83,5 +83,5 @@ class Article(db.Model):
"like": self.like,
"date": self.date,
"retrieved_date": self.retrieved_date,
- "feed_id": self.source.id,
- "feed_name": self.source.title}
+ "feed_id": getattr(self.source, 'id', None),
+ "feed_name": getattr(self.source, 'title', None)}
bgstack15