Permalink
Browse files

Oops, fix SQL query properly

  • Loading branch information...
1 parent ab3ac58 commit 59bca50329520c9ead771d76f2bfad6f169c0fdb @mhagander committed Sep 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 synctwitter.py
View
@@ -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 planet.feeds WHERE NOT (twitteruser IS NULL OR twitteruser='') ORDER BY twitteruser");
+ curs.execute("SELECT DISTINCT lower(twitteruser) FROM planet.feeds WHERE 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

0 comments on commit 59bca50

Please sign in to comment.