tChange way articles are selected. - zs - Zeitungsschau rss to email converter
 (HTM) git clone git://r-36.net/zs
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit 811309536c6a286b10cb0590a63436144f20a2fd
 (DIR) parent 8a135f44eb82ce00357a28f8196bc6c3de7d1cd3
 (HTM) 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(-)
       ---
 (DIR) diff --git a/zeitungsschau/feed.py b/zeitungsschau/feed.py
       t@@ -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"])