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 9501592719
commit 5e3e79c01b
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

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