Ignore blank hackernews titles
This commit is contained in:
@@ -146,6 +146,9 @@ def story(ref):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
if not s['title']:
|
||||||
|
return False
|
||||||
|
|
||||||
if s['score'] < 25 and s['num_comments'] < 10:
|
if s['score'] < 25 and s['num_comments'] < 10:
|
||||||
logging.info('Score ({}) or num comments ({}) below threshold.'.format(s['score'], s['num_comments']))
|
logging.info('Score ({}) or num comments ({}) below threshold.'.format(s['score'], s['num_comments']))
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user