Skip to content

Commit 136e040

Browse files
xjplkechromexxAvital-Fine
authored
change the filter of numberic with exclude flag(#143) (#144)
Co-authored-by: shaojunwu <xjplke@163.com> Co-authored-by: Avital Fine <98389525+Avital-Fine@users.noreply.github.com>
1 parent ef3e8f4 commit 136e040

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redisearch/query.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ func appendNumArgs(num float64, exclude bool, args redis.Args) redis.Args {
259259
}
260260

261261
if exclude {
262-
return append(args, fmt.Sprint("(", num))
262+
return append(args, fmt.Sprintf("(%v", num))
263263
}
264264
return append(args, num)
265265
}

0 commit comments

Comments
 (0)