Skip to content

Instantly share code, notes, and snippets.

@kylefox kylefox/filter.py
Created Aug 19, 2015

Embed
What would you like to do?
# Bayes filter for FotoJournal
if blog.title.contains('photography'):
blog.status = 'Active'
elif blog.title.contains('penis'):
blog.status = 'Spam'
else:
blog.status = 'Unknown'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.