zs

Zeitungsschau rss to email converter
git clone git://r-36.net/zs
Log | Files | Refs | LICENSE

commit 811309536c6a286b10cb0590a63436144f20a2fd
parent 8a135f44eb82ce00357a28f8196bc6c3de7d1cd3
Author: Christoph Lohmann <20h@r-36.net>
Date:   Wed, 22 Aug 2018 20:21:13 +0200

Change way articles are selected.

Diffstat:
zeitungsschau/feed.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/zeitungsschau/feed.py b/zeitungsschau/feed.py @@ -367,7 +367,7 @@ def parseatomfeed(astr): # Richard Stallman? try: feed["articles"] = sorted(articles, key=lambda article: \ - article["updated"])[-64:] + article["updated"])[:64] except TypeError: for article in articles: print(article["updated"])