From 22473179b0677ad50fd0d3284726683cf00c54e0 Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Tue, 12 Sep 2017 22:53:07 -0400 Subject: fix bug in shifting up tier two stories --- unbiased/sources/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3