Select only member role member.
This commit is contained in:
parent
fde185ff6f
commit
73220682bd
1 changed files with 4 additions and 3 deletions
|
@ -60,12 +60,13 @@
|
|||
(define (list-mailman3-sql-list-members lst)
|
||||
(let-values (((stmt _)
|
||||
(prepare (mailman3-db)
|
||||
"SELECT address.email
|
||||
"SELECT DISTINCT address.email
|
||||
FROM member
|
||||
LEFT JOIN address
|
||||
ON member.address_id=address.id
|
||||
WHERE list_id=?")))
|
||||
(map-row identity stmt
|
||||
WHERE list_id=? AND role=1")))
|
||||
(map-row identity
|
||||
stmt
|
||||
(format "~A.brmlab.cz" lst))))
|
||||
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue