From da04eb7f1390d3fe3398c1fe4813e67ffd3028ea Mon Sep 17 00:00:00 2001 From: comp500 <comp500@users.noreply.github.com> Date: Fri, 10 Mar 2023 16:47:18 +0000 Subject: [PATCH] Regression fix: filter Modrinth search results by game versions --- modrinth/modrinth.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modrinth/modrinth.go b/modrinth/modrinth.go index 0e310dd..9371823 100644 --- a/modrinth/modrinth.go +++ b/modrinth/modrinth.go @@ -38,9 +38,10 @@ func getProjectIdsViaSearch(query string, versions []string) ([]*modrinthApi.Sea } res, err := mrDefaultClient.Projects.Search(&modrinthApi.SearchOptions{ - Limit: 5, - Index: "relevance", - Query: query, + Limit: 5, + Index: "relevance", + Facets: [][]string{facets}, + Query: query, }) if err != nil {