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: http://jaekl.net/gitweb/?p=quanweb.git;a=commitdiff_plain;h=b89416d2527ebd8c861ee990c3c08b043e9fdaa2 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 += ")"