Add FilterValue to search options
This commit is contained in:
parent
02a6104fb0
commit
1b8c05b257
|
@ -77,6 +77,7 @@ func convertPkg(p db.Package) Package {
|
|||
// Options contains the options for a search.
|
||||
type Options struct {
|
||||
Filter Filter
|
||||
FilterValue string
|
||||
SortBy SortBy
|
||||
Limit int64
|
||||
Query string
|
||||
|
@ -94,7 +95,7 @@ func Search(opts Options) ([]Package, error) {
|
|||
case FilterSupportsArch:
|
||||
query += " AND json_array_contains(architectures, ?)"
|
||||
}
|
||||
args = append(args, opts.Filter)
|
||||
args = append(args, opts.FilterValue)
|
||||
}
|
||||
|
||||
if opts.SortBy != SortByNone {
|
||||
|
|
Loading…
Reference in New Issue