Skip to content

Commit

Permalink
change the filter of numberic with exclude flag(#143) (#144)
Browse files Browse the repository at this point in the history
Co-authored-by: shaojunwu <xjplke@163.com>
Co-authored-by: Avital Fine <98389525+Avital-Fine@users.noreply.github.com>
  • Loading branch information
3 people authored Apr 27, 2022
1 parent ef3e8f4 commit 136e040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redisearch/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func appendNumArgs(num float64, exclude bool, args redis.Args) redis.Args {
}

if exclude {
return append(args, fmt.Sprint("(", num))
return append(args, fmt.Sprintf("(%v", num))
}
return append(args, num)
}
Expand Down

0 comments on commit 136e040

Please sign in to comment.