From 0b2401457aec09e301f1b6a63a1987bdb531e513 Mon Sep 17 00:00:00 2001 From: Lietzu Date: Fri, 5 May 2017 12:43:36 -0400 Subject: [PATCH] Update main.go --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 36aac784..2422e6da 100644 --- a/main.go +++ b/main.go @@ -163,7 +163,7 @@ func searchByQuery(r *http.Request, pagenum int) (SearchParam, []model.Torrents, } else { conditions = append(conditions, "status_id = ?") } - parameters.params = append(parameters.params, search_param.Status) + parameters.Params = append(parameters.params, search_param.Status) } searchQuerySplit := strings.Split(search_param.Query, " ") for i, _ := range searchQuerySplit {