From b9d0ebed6603b218618086944b5f785d94811a7e Mon Sep 17 00:00:00 2001 From: Titouan Mathis Date: Wed, 29 May 2024 10:36:17 +0200 Subject: [PATCH] Do not show closed tasks --- src/Functions/main.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Functions/main.php b/src/Functions/main.php index 6024f2f..6d88118 100644 --- a/src/Functions/main.php +++ b/src/Functions/main.php @@ -49,7 +49,10 @@ function main(array $args):void 'filter[budget_status]' => '1', 'filter[time_tracking_enabled]' => 'true', ]], - 'tasks' => [Tasks::class, ['sort' => '-updated_at']], + 'tasks' => [Tasks::class, [ + 'sort' => '-updated_at', + 'filter[status]' => '1', + ]], ]; logger('main', $command, should_update_cache() ? '--update-cache' : '');