diff --git a/apiserver/feed.py b/apiserver/feed.py index f588972..87612b0 100644 --- a/apiserver/feed.py +++ b/apiserver/feed.py @@ -117,6 +117,7 @@ def update_story(story, is_manual=False): story['text'] = get_article(story['url']) if not story['text']: return False + logging.info('returning true') return True if __name__ == '__main__': diff --git a/apiserver/server.py b/apiserver/server.py index f7716d4..a5b97e6 100644 --- a/apiserver/server.py +++ b/apiserver/server.py @@ -183,8 +183,10 @@ def feed_thread(): else: database.del_ref(item['ref']) logging.info('Removed ref {}'.format(item['ref'])) + else: + logging.info('Skipping index') - gevent.sleep(60) + gevent.sleep(6) news_index += 1 if news_index == FEED_LENGTH: news_index = 0