Created
August 19, 2015 13:20
-
-
Save kylefox/9cd43d30f5b14bf85f12 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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