Compare commits
No commits in common. "632d028e4c29144d0d5dc7d4fb55a1729cdf58e2" and "2838ea9b41135a2f8b542d6eb15c5832d160712e" have entirely different histories.
632d028e4c
...
2838ea9b41
|
@ -107,20 +107,7 @@ def story(ref):
|
||||||
ch = a.find('header', class_='topic-comments-header')
|
ch = a.find('header', class_='topic-comments-header')
|
||||||
s['num_comments'] = int(ch.h2.string.split(' ')[0]) if ch else 0
|
s['num_comments'] = int(ch.h2.string.split(' ')[0]) if ch else 0
|
||||||
|
|
||||||
if s['group'].split('.')[0] not in [
|
if s['score'] < 16 and s['num_comments'] < 12:
|
||||||
'~arts',
|
|
||||||
'~comp',
|
|
||||||
'~creative',
|
|
||||||
'~design',
|
|
||||||
'~engineering',
|
|
||||||
'~finance',
|
|
||||||
'~science',
|
|
||||||
'~tech',
|
|
||||||
]:
|
|
||||||
logging.info('Group ({}) not in whitelist.'.format(s['group']))
|
|
||||||
return False
|
|
||||||
|
|
||||||
if s['score'] < 15 and s['num_comments'] < 15:
|
|
||||||
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user