|
|
@ -84,6 +84,10 @@ def story(ref): |
|
|
|
s['comments'] = list(filter(bool, s['comments'])) |
|
|
|
s['comments'] = list(filter(bool, s['comments'])) |
|
|
|
s['num_comments'] = comment_count(s) - 1 |
|
|
|
s['num_comments'] = comment_count(s) - 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
|
|
|
|
|
|
|
|
|
|
|
if 'text' in r and r['text']: |
|
|
|
if 'text' in r and r['text']: |
|
|
|
s['text'] = clean(r['text'] or '') |
|
|
|
s['text'] = clean(r['text'] or '') |
|
|
|
|
|
|
|
|
|
|
|