filt = set(filt) | filt = set(filt) | ||||
newfilt = set() | newfilt = set() | ||||
for p in posts: | |||||
if len(ok) <= tp and p['score'] >= config['min_score']: | |||||
for i, p in enumerate(posts): | |||||
if i < tp and p['score'] >= config['min_score']: | |||||
if p['rid'] not in filt: | if p['rid'] not in filt: | ||||
ok.append(p) | ok.append(p) | ||||
else: | else: |