diff --git a/dist/plan b/dist/plan index eb2aaf0..3ab23b9 100755 Binary files a/dist/plan and b/dist/plan differ diff --git a/plan/command/list.go b/plan/command/list.go index 649056e..8e9a6c2 100644 --- a/plan/command/list.go +++ b/plan/command/list.go @@ -56,7 +56,7 @@ func (la ListArgs) Parse(main []string, fields map[string]string) (Command, erro fields["from"] = today.String() fields["to"] = today.Add(7).String() case main[0] == "recur": - fields["recurring"] = "true" + fields["recurrer"] = "true" // case main[0] == "list": // fields["from"] = today.String() // fields["to"] = today.String() diff --git a/plan/storage/sqlite/task.go b/plan/storage/sqlite/task.go index 919060c..5df8aea 100644 --- a/plan/storage/sqlite/task.go +++ b/plan/storage/sqlite/task.go @@ -71,7 +71,7 @@ func (t *SqliteTask) FindMany(params storage.TaskListParams) ([]item.Task, error where := make([]string, 0) var dateNonEmpty bool if params.HasRecurrer { - where[0] = `recurrer != ''` + where = append(where, `recurrer != ''`) } if !params.From.IsZero() { where = append(where, `date >= ?`)