Fix bug in list search that was introduced by sort order work. master
authorChris Jaekl <chris@localhost>
Thu, 20 Oct 2022 02:15:42 +0000 (22:15 -0400)
committerChris Jaekl <chris@localhost>
Thu, 20 Oct 2022 02:15:42 +0000 (22:15 -0400)
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 += ")"