Skip to content

Commit

Permalink
Fixes partial match
Browse files Browse the repository at this point in the history
  • Loading branch information
richmahn committed Nov 30, 2021
1 parent d92de80 commit f71afbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions models/repo_list.go
Expand Up @@ -373,9 +373,9 @@ func SearchRepositoryCondition(opts *SearchRepoOptions) builder.Cond {
}

/*** DCS Customizations ***/
cond = cond.And(GetRepoCond(opts.Repos, true),
GetOwnerCond(opts.Owners, true),
GetSubjectCond(opts.Subjects, true),
cond = cond.And(GetRepoCond(opts.Repos, false),
GetOwnerCond(opts.Owners, false),
GetSubjectCond(opts.Subjects, false),
GetBookCond(opts.Books),
GetLanguageCond(opts.Languages, true))
/*** EMD DCS Customizations ***/
Expand Down
2 changes: 1 addition & 1 deletion routers/api/catalog/v5/catalog.go
Expand Up @@ -477,7 +477,7 @@ func searchCatalog(ctx *context.APIContext) {
IncludeHistory: ctx.QueryBool("includeHistory"),
ShowIngredients: ctx.QueryBool("showIngredients"),
IncludeMetadata: includeMetadata,
PartialMatch: ctx.QueryBool("partialMatch", true),
PartialMatch: ctx.QueryBool("partialMatch", false),
}

var sortModes = QueryStrings(ctx, "sort")
Expand Down

0 comments on commit f71afbf

Please sign in to comment.