projects
/
hamn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e822be
)
Fix query for list sync
author
Magnus Hagander
<magnus@hagander.net>
Thu, 11 Feb 2016 08:30:56 +0000
(09:30 +0100)
committer
Magnus Hagander
<magnus@hagander.net>
Thu, 11 Feb 2016 08:30:56 +0000
(09:30 +0100)
listsync.py
patch
|
blob
|
blame
|
history
diff --git
a/listsync.py
b/listsync.py
index 1bec00a3ce282c34042210f7152b41cbdd6a8017..3706f71e144260d6592a12cb1334c730b626be6e 100755
(executable)
--- a/
listsync.py
+++ b/
listsync.py
@@
-144,8
+144,8
@@
class Synchronizer:
curs = self.db.cursor()
curs.execute("""
-SELECT
email FROM auth_user
-INNER JOIN feeds ON auth_user.
username=feeds.userid
+SELECT
DISTINCT email FROM auth_user
+INNER JOIN feeds ON auth_user.
id=feeds.user_id
WHERE feeds.approved
""")
self.expected = set([r[0] for r in curs.fetchall()])