no enclosures in text for daily digests
This commit is contained in:
@ -130,7 +130,7 @@ class Entry(Base):
|
||||
def __repr__(self):
|
||||
return "<Entry('%d','%s')>" % (self.id, self.title)
|
||||
|
||||
def get_text(self):
|
||||
def get_text(self, enclosures=True):
|
||||
text = ''
|
||||
if self.feed.contentcolumn == 'summary' and self.summary:
|
||||
text = self.summary
|
||||
@ -140,7 +140,7 @@ class Entry(Base):
|
||||
text = self.fullpage
|
||||
elif self.feed.contentcolumn == 'readability' and self.readability:
|
||||
text = self.readability
|
||||
if self.enclosures:
|
||||
if self.enclosures and enclosures:
|
||||
text += '\n\nEnclosures:\n%s' % self.enclosures
|
||||
return text
|
||||
|
||||
|
Reference in New Issue
Block a user