Browse Source

Better logging.

master
Trey Del Bonis 2 years ago
parent
commit
823aacad33
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      main.py

+ 4
- 1
main.py View File

if post['kind'] != 't3': if post['kind'] != 't3':
print('found post of kind', post['kind']) print('found post of kind', post['kind'])



p = process_post(post) p = process_post(post)


lt = p['title'].lower() lt = p['title'].lower()
if p['rid'] not in filt: if p['rid'] not in filt:
ok.append(p) ok.append(p)
newfilt.add(p['rid']) newfilt.add(p['rid'])
else:
print('filtered out:', p['rid'], p['title'])
elif p['rid'] in filt: elif p['rid'] in filt:
newfilt.add(p['rid']) newfilt.add(p['rid'])
else:
print('skipped:', p['rid'], p['title'])


return ok, list(newfilt) return ok, list(newfilt)



Loading…
Cancel
Save