Skip to content

Commit

Permalink
fix an SQL subquery in /admin/users
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco committed May 1, 2024
1 parent 4c548e5 commit a94b725
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions www/admin/users.spt
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ if mode == 'all':
FROM email_blacklist bl
WHERE lower(bl.address) = lower(e.address)
AND (bl.ignore_after IS NULL OR bl.ignore_after > current_timestamp)
ORDER BY bl.ignore_after DESC NULLS FIRST, bl.ts DESC
LIMIT 1
)
)
FROM emails e
Expand Down

0 comments on commit a94b725

Please sign in to comment.