minor change in db-structure, made mailtext column selectable
This commit is contained in:
@ -57,3 +57,15 @@ class Entry(Base):
|
||||
pp.pprint(entry.get('enclosures'))
|
||||
#self.enclosures = entry.get('enclosures')
|
||||
self.lastfetched = datetime.now()
|
||||
|
||||
def get_text(self):
|
||||
if self.feed.contentcolumn == 'summary':
|
||||
text = self.summary
|
||||
elif self.feed.contentcolumn == 'content':
|
||||
text = self.content
|
||||
elif self.feed.contentcolumn == 'fullpage':
|
||||
text = self.fullpage
|
||||
elif self.feed.contentcolumn == 'readability':
|
||||
text = self.readability
|
||||
return text
|
||||
|
||||
|
Reference in New Issue
Block a user