Skip to content

Commit

Permalink
Fix: Don't list tasks in need of review with command "waiting"
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-si committed Mar 18, 2020
1 parent 0affded commit 0daf8f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tasklite-core/source/Lib.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1449,7 +1449,9 @@ listWaiting :: Config -> DateTime -> Connection -> IO (Doc AnsiStyle)
listWaiting conf now connection = do
tasks <- query_ connection
"select * from tasks_view \
\where closed_utc is null and waiting_utc is not null \
\where closed_utc is null \
\and waiting_utc is not null \
\and (review_utc > datetime('now') or review_utc is null) \
\order by waiting_utc desc"

pure $ formatTasks conf now tasks
Expand Down

0 comments on commit 0daf8f6

Please sign in to comment.