Lade till stjärnmärkta artiklar

This commit is contained in:
2014-11-17 14:56:31 +00:00
parent 106287d8e0
commit d1a89ac322

View File

@@ -22,11 +22,17 @@ def count():
for article in hls:
fresh = fresh + 1
strd = client.get_headlines(feed_id=-3)
starred = 0
for article in strd:
starred = starred + 1
feeds = client.get_feed_count()
print "unread.value %s" % unread
print "fresh.value %s" % fresh
print "feeds.value %s" % feeds
print "starred.value %s" % starred
def config():
@@ -53,6 +59,11 @@ feeds.colour 006699
feeds.max 10000
feeds.min 0
feeds.info The number of subscribed feeds
starred.label Starred
starred.colour FDD017
starred.max 10000
starred.min 0
starred.info The number of starred articles
"""
if len(sys.argv) > 1: