diff options
author | Matt Singleton <matt@xcolour.net> | 2017-09-12 22:53:07 -0400 |
---|---|---|
committer | Matt Singleton <matt@xcolour.net> | 2017-09-12 22:53:07 -0400 |
commit | 22473179b0677ad50fd0d3284726683cf00c54e0 (patch) | |
tree | 2ebf5aae6eed9ecfa2e44d47271f89313fca1d5f | |
parent | 0584698995cc748434cddd4a1a3baa56ff7aa180 (diff) |
fix bug in shifting up tier two stories
-rw-r--r-- | unbiased/sources/base.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unbiased/sources/base.py b/unbiased/sources/base.py index b4bff75..af0a53e 100644 --- a/unbiased/sources/base.py +++ b/unbiased/sources/base.py @@ -110,7 +110,8 @@ class NewsSource(object): articles = cls._remove_bad_stories(articles, 'url', cls.bad_urls) new_articles.append(articles) if len(new_articles[0]) == 0 and len(new_articles[1]) > 0: - new_articles[0].append(new_articles[1].pop()) + new_articles[0] = new_articles[0] + new_articles[1][:1] + new_articles[1] = new_articles[1][1:] return tuple(tuple(x) for x in new_articles) @classmethod |