소스 검색

Better logging.

master
Trey Del Bonis 2 년 전
부모
커밋
823aacad33
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4
    1
      main.py

+ 4
- 1
main.py 파일 보기

@@ -142,7 +142,6 @@ def query_tops(config):
if post['kind'] != 't3':
print('found post of kind', post['kind'])


p = process_post(post)

lt = p['title'].lower()
@@ -164,8 +163,12 @@ def filter_posts(config, posts, filt):
if p['rid'] not in filt:
ok.append(p)
newfilt.add(p['rid'])
else:
print('filtered out:', p['rid'], p['title'])
elif p['rid'] in filt:
newfilt.add(p['rid'])
else:
print('skipped:', p['rid'], p['title'])

return ok, list(newfilt)


Loading…
취소
저장