aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/feedgetter.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-04-12 12:12:52 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-04-12 12:12:52 +0200
commita019e8901b30526b9d7a5443c9355fe87ce620bf (patch)
tree3ad3128de9116c7e9ed9a891529c2f6f2e8af8ec /pyaggr3g470r/feedgetter.py
parentBetter use of the decorator 'feed_access_required'. (diff)
downloadnewspipe-a019e8901b30526b9d7a5443c9355fe87ce620bf.tar.gz
newspipe-a019e8901b30526b9d7a5443c9355fe87ce620bf.tar.bz2
newspipe-a019e8901b30526b9d7a5443c9355fe87ce620bf.zip
New ForeignKey between Article and User.
Diffstat (limited to 'pyaggr3g470r/feedgetter.py')
-rw-r--r--pyaggr3g470r/feedgetter.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pyaggr3g470r/feedgetter.py b/pyaggr3g470r/feedgetter.py
index c503d17c..8cf71255 100644
--- a/pyaggr3g470r/feedgetter.py
+++ b/pyaggr3g470r/feedgetter.py
@@ -177,8 +177,9 @@ class FeedGetter(object):
post_date = datetime(*article.updated_parsed[:6])
# save the article
- article = Article(link=nice_url, title=article_title,
- content=description, readed=False, like=False, date=post_date)
+ article = Article(link=nice_url, title=article_title, \
+ content=description, readed=False, like=False, date=post_date, \
+ user_id=self.user.id, feed_id=feed.id)
articles.append(article)
# add the article to the Whoosh index
bgstack15