From: Chris Jaekl Date: Thu, 20 Oct 2022 02:15:42 +0000 (-0400) Subject: Fix bug in list search that was introduced by sort order work. X-Git-Url: https://jaekl.net/gitweb/?a=commitdiff_plain;h=HEAD;p=quanweb.git Fix bug in list search that was introduced by sort order work. --- diff --git a/main/db.go b/main/db.go index fbc67c8..c7b4477 100644 --- a/main/db.go +++ b/main/db.go @@ -236,7 +236,7 @@ func queryIds(criteria []SearchTerm) []int { if j > 0 { query += "," } - query += "UPPER($" + strconv.Itoa(count + j + 1) + ")" + query += "UPPER($" + strconv.Itoa(count + j) + ")" args = append(args, code) } query += ")"