Skip to content
This repository has been archived by the owner on Jun 24, 2023. It is now read-only.

Commit

Permalink
correcting example filtering rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Moffat committed May 7, 2012
1 parent 33ababc commit 7704dc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down
4 changes: 2 additions & 2 deletions focus.py
Expand Up @@ -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):
Expand Down Expand Up @@ -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.