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