We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea7d14e commit a0a12b7Copy full SHA for a0a12b7
controllers/controller.go
@@ -10,7 +10,7 @@ import (
10
"strings"
11
)
12
13
-const levenshtein = 0.85
+const levenshtein = 0.8
14
15
//CreateName create new name on database of type NameType
16
func CreateName(c *gin.Context) {
@@ -151,7 +151,10 @@ func orderByLevenshtein(arr []models.NameVar) []string {
151
152
var retArry []string
153
for _, lv := range sortedArr {
154
- retArry = append(retArry, lv.Name)
+ if lv.Levenshtein != float32(0) {
155
+ retArry = append(retArry, lv.Name)
156
+ }
157
+
158
}
159
160
return retArry
0 commit comments