don't exclude recurrers by default in list

This commit is contained in:
Erik Winter 2025-01-05 08:30:55 +01:00
parent e910517fd3
commit c5cecf3ff6
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ func (t *SqliteTask) FindMany(params storage.TaskListParams) ([]item.Task, error
query := `SELECT id, title, project, date, time, duration, recurrer FROM tasks` query := `SELECT id, title, project, date, time, duration, recurrer FROM tasks`
args := []interface{}{} args := []interface{}{}
where := []string{`recurrer = ''`} where := make([]string, 0)
if params.HasRecurrer { if params.HasRecurrer {
where[0] = `recurrer != ''` where[0] = `recurrer != ''`
} }