Ignore blank hackernews titles

This commit is contained in:
2025-07-07 17:19:31 +00:00
parent f1a30d0af2
commit 5cdbf6ef54

View File

@@ -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