store datetime from newsfeed in the Thread object (closes #419)
This commit is contained in:
parent
b08dda9bcc
commit
4926ac6ae2
1 changed files with 2 additions and 0 deletions
|
|
@ -61,6 +61,8 @@ class DLFPBackend(BaseBackend, ICapMessages, ICapMessagesPost):
|
||||||
for article in Newsfeed(what, url2id).iter_entries():
|
for article in Newsfeed(what, url2id).iter_entries():
|
||||||
thread = Thread(article.id)
|
thread = Thread(article.id)
|
||||||
thread.title = article.title
|
thread.title = article.title
|
||||||
|
if article.datetime:
|
||||||
|
thread.date = article.datetime
|
||||||
yield thread
|
yield thread
|
||||||
|
|
||||||
def get_thread(self, id):
|
def get_thread(self, id):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue