1
0

chore(filters): cleanup old variables

This commit is contained in:
kolaente
2023-11-22 10:43:07 +01:00
parent 65e1357705
commit 87c027aafd
5 changed files with 12 additions and 18 deletions

View File

@ -167,13 +167,11 @@ const (
)
type taskSearchOptions struct {
search string
page int
perPage int
sortby []*sortParam
filters []*taskFilter
// deprecated: concat should live in filters directly
filterConcat taskFilterConcatinator
search string
page int
perPage int
sortby []*sortParam
parsedFilters []*taskFilter
filterIncludeNulls bool
filter string
projectIDs []int64
@ -267,11 +265,6 @@ func getRawTasksForProjects(s *xorm.Session, projects []*Project, a web.Auth, op
return nil, 0, 0, nil
}
// Set the default concatinator of filter variables to or if none was provided
if opts.filterConcat == "" {
opts.filterConcat = filterConcatOr
}
// Get all project IDs and get the tasks
opts.projectIDs = []int64{}
var hasFavoritesProject bool