feed shows if it's enabled or not
This commit is contained in:
parent
ea14005ac1
commit
4b11d2a01e
@ -40,9 +40,13 @@ class Feed(Base):
|
|||||||
else:
|
else:
|
||||||
title = '<unknown>'
|
title = '<unknown>'
|
||||||
last = '<never>'
|
last = '<never>'
|
||||||
|
if self.enabled:
|
||||||
|
enabled = 'enabled'
|
||||||
|
else:
|
||||||
|
enabled = 'DISABLED'
|
||||||
entries = len(self.entries)
|
entries = len(self.entries)
|
||||||
url = self.url
|
url = self.url
|
||||||
return u'%3d %s (%d entries, last fetched %s)\n %s' % (id, title, entries, last, url)
|
return u'%3d %s (%d entries, last fetched %s, %s)\n %s' % (id, title, entries, last, enabled, url)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return unicode(self).encode('utf-8')
|
return unicode(self).encode('utf-8')
|
||||||
|
Loading…
Reference in New Issue
Block a user