diff --git a/dist/plan b/dist/plan index 7470218..40b05d3 100755 Binary files a/dist/plan and b/dist/plan differ diff --git a/plan/storage/sqlite/task.go b/plan/storage/sqlite/task.go index a619339..c7892f4 100644 --- a/plan/storage/sqlite/task.go +++ b/plan/storage/sqlite/task.go @@ -67,10 +67,10 @@ WHERE id = ?`, id).Scan(&tsk.ID, &tsk.Title, &tsk.Project, &dateStr, &timeStr, & func (t *SqliteTask) FindMany(params storage.TaskListParams) ([]item.Task, error) { query := `SELECT id, title, project, date, time, duration, recurrer FROM tasks` args := []interface{}{} - where := []string{} + where := []string{`recurrer = ''`} if params.Recurrer { - where = append(where, `recurrer IS NOT NULL AND recurrer != ''`) + where[0] = `recurrer != ''` } if !params.Date.IsZero() && !params.IncludeBefore { where = append(where, `date = ?`)