store datetime from newsfeed in the Thread object (closes #419)

This commit is contained in:
Romain Bignon 2010-11-10 00:30:01 +01:00
commit 4926ac6ae2

View file

@ -61,6 +61,8 @@ class DLFPBackend(BaseBackend, ICapMessages, ICapMessagesPost):
for article in Newsfeed(what, url2id).iter_entries():
thread = Thread(article.id)
thread.title = article.title
if article.datetime:
thread.date = article.datetime
yield thread
def get_thread(self, id):