Permalink
Browse files

correcting example filtering rules

  • Loading branch information...
Andrew Moffat
Andrew Moffat committed May 7, 2012
1 parent 33ababc commit 7704dc11be05fd8ca7ea05697d9e99aee81dd61d
Showing with 4 additions and 4 deletions.
  1. +2 −2 README.md
  2. +2 −2 focus.py
View
@@ -3,7 +3,7 @@ to distracting websites. An example firewall rule looks like this:
``` python
def domain_reddit_com(dt):
- return dt.hour in (21, 22) # allow from 9-10pm
+ return dt.hour == 21 # allow from 9-10pm
```
Starting
@@ -36,7 +36,7 @@ def domain_ycombinator_com(dt):
return False
def domain_reddit_com(dt):
- # return dt.hour in (12, 21, 22) # at noon, or from 9-10pm
+ # return dt.hour in (12, 21) # at noon-1pm, or from 9-10pm
return False
def domain_facebook_com(dt):
View
@@ -80,7 +80,7 @@ def domain_news_ycombinator_com(dt):
return False
def domain_reddit_com(dt):
- # return dt.hour in (12, 21, 22) # at noon, or from 9-10pm
+ # return dt.hour in (12, 21) # at noon-1pm, or from 9-10pm
return False
def domain_facebook_com(dt):
@@ -422,4 +422,4 @@ def adjust_ttl_in_reply(self, reply, ttl):
last_cleaned_readers = now
- server.close()
+ server.close()

0 comments on commit 7704dc1

Please sign in to comment.