Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
csnardi committed Jan 4, 2015
1 parent f4d6edb commit 0be67a0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ws.py
Expand Up @@ -183,10 +183,7 @@ def is_ignored_post(postid_site_tuple):
return postid_site_tuple in GlobalVars.ignored_posts

def is_auto_ignored_post(postid_site_tuple):
for p in GlobalVars.auto_ignored_posts:
if p[0] == postid_site_tuple[0] and p[1] == postid_site_tuple[1]:
return True
return False
return postid_site_tuple in GlobalVars.auto_ignored_posts

def add_whitelisted_user(user):
if user in GlobalVars.whitelisted_users or user is None:
Expand Down

0 comments on commit 0be67a0

Please sign in to comment.