Skip to content

Commit

Permalink
Don't synchronize twitter users for unapproved feeds
Browse files Browse the repository at this point in the history
  • Loading branch information
mhagander committed Mar 8, 2016
1 parent 4b77722 commit 2b0f787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synctwitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def __init__(self, cfg):
def Run(self):
# Get list of handles that should be on the list
curs = self.db.cursor()
curs.execute("SELECT DISTINCT lower(twitteruser) FROM feeds WHERE NOT (twitteruser IS NULL OR twitteruser='') ORDER BY lower(twitteruser)");
curs.execute("SELECT DISTINCT lower(twitteruser) FROM feeds WHERE approved AND NOT (twitteruser IS NULL OR twitteruser='') ORDER BY lower(twitteruser)");
expected = set([r[0].replace('@','') for r in curs.fetchall()])

# Get list of current screen names the list is following
Expand Down

0 comments on commit 2b0f787

Please sign in to comment.