feat: only load tasks which start in the currently selected range

This commit is contained in:
kolaente 2022-07-20 18:40:27 +02:00
parent 49a24977f9
commit ed241d21be
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 4 additions and 3 deletions

View File

@ -75,10 +75,11 @@ async function loadTasks() {
const params = {
sort_by: ['start_date', 'done', 'id'],
order_by: ['asc', 'asc', 'desc'],
filter_by: ['done'], // TODO: only load tasks in the current date range
filter_comparator: ['equals'],
filter_value: ['false'],
filter_by: ['done', 'start_date', 'start_date'],
filter_comparator: ['equals', 'greater_equals', 'less_equals'],
filter_value: ['false', props.dateFrom, props.dateTo],
filter_concat: 'and',
filter_include_nulls: true,
}
const taskCollectionService = new TaskCollectionService()