Skip to content

Commit

Permalink
Update filterbuilder.go
Browse files Browse the repository at this point in the history
  • Loading branch information
whoiscarlo committed Jan 6, 2024
1 parent 5c5afe9 commit 8b84f3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions filterbuilder.go
Expand Up @@ -196,12 +196,12 @@ func (f *FilterBuilder) RangeAdjacent(column, value string) *FilterBuilder {
}

func (f *FilterBuilder) Overlaps(column string, value []string) *FilterBuilder {
_new := []string{}
newValue := []string{}
for _, v := range value {
_new = append(_new, fmt.Sprintf("%#v", v))
newValue = append(newValue, fmt.Sprintf("%#v", v))
}

valueString := fmt.Sprintf("{%s}", strings.Join(_new, ","))
valueString := fmt.Sprintf("{%s}", strings.Join(newValue, ","))
f.params[column] = "ov." + valueString
return f
}
Expand Down

0 comments on commit 8b84f3f

Please sign in to comment.