diff --git a/pkg/models/label.go b/pkg/models/label.go index fab3280d3..cb4aa8e92 100644 --- a/pkg/models/label.go +++ b/pkg/models/label.go @@ -20,7 +20,6 @@ import ( "code.vikunja.io/api/pkg/timeutil" "code.vikunja.io/api/pkg/user" "code.vikunja.io/web" - "time" ) // Label represents a label @@ -212,10 +211,8 @@ func getUserTaskIDs(u *user.User) (taskIDs []int64, err error) { } tasks, _, _, err := getRawTasksForLists(lists, &taskOptions{ - startDate: time.Unix(0, 0), - endDate: time.Unix(0, 0), - page: -1, - perPage: 0, + page: -1, + perPage: 0, }) if err != nil { return nil, err diff --git a/pkg/models/task_collection.go b/pkg/models/task_collection.go index 1068d4213..11341817c 100644 --- a/pkg/models/task_collection.go +++ b/pkg/models/task_collection.go @@ -20,15 +20,12 @@ package models import ( "code.vikunja.io/api/pkg/user" "code.vikunja.io/web" - "time" ) // TaskCollection is a struct used to hold filter details and not clutter the Task struct with information not related to actual tasks. type TaskCollection struct { - ListID int64 `param:"list"` - StartDateSortUnix int64 `query:"startdate"` - EndDateSortUnix int64 `query:"enddate"` - Lists []*List + ListID int64 `param:"list"` + Lists []*List // The query parameter to sort by. This is for ex. done, priority, etc. SortBy []string `query:"sort_by"` @@ -163,13 +160,11 @@ func (tf *TaskCollection) ReadAll(a web.Auth, search string, page int, perPage i } taskopts := &taskOptions{ - search: search, - startDate: time.Unix(tf.StartDateSortUnix, 0), - endDate: time.Unix(tf.EndDateSortUnix, 0), - page: page, - perPage: perPage, - sortby: sort, - filters: filters, + search: search, + page: page, + perPage: perPage, + sortby: sort, + filters: filters, } shareAuth, is := a.(*LinkSharing)