Fix bug in list search that was introduced by sort order work.
[quanweb.git] / main / db.go
index fbc67c8d235f37ac23bc0c180cf53815107fd51b..c7b44777a2888849d9edccf561e309fff69db353 100644 (file)
@@ -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 += ")"