Skip to content

Commit

Permalink
Fix incorrect SQL query for ready tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-si committed Mar 15, 2024
1 parent 0c2f923 commit 6f74569
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tasklite-core/source/Lib.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2417,11 +2417,10 @@ listReady conf now connection = do
SELECT *
FROM tasks_view
WHERE
ready_utc IS NULL OR
(
(ready_utc IS NOT NULL AND ready_utc < datetime('now')) AND
closed_utc IS NULL
)
(ready_utc IS NULL OR
(ready_utc IS NOT NULL AND ready_utc < datetime('now'))
) AND
closed_utc IS NULL
ORDER BY
priority DESC,
due_utc ASC,
Expand Down

0 comments on commit 6f74569

Please sign in to comment.