1

Fix function parameter

Sense numbers start at 1, not 0
This commit is contained in:
stephenmk 2023-01-24 08:55:24 -06:00
parent ef1e74447d
commit 96358e3eb5
No known key found for this signature in database
GPG Key ID: B6DA730DB06235F1
2 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ func createSearchTerm(headword headword, entry jmdict.JmdictEntry, meta jmdictMe
term.addRules(rules...)
}
term.addTermTags(headword.TermTags...)
term.Score = calculateTermScore(0, headword)
term.Score = calculateTermScore(1, headword)
redirectHeadword := meta.seqToMainHeadword[entry.Sequence]
expHash := redirectHeadword.ExpHash()

View File

@ -225,7 +225,7 @@ func formsExportDb(inputPath, outputPath, languageName, title string, stride int
term.Expression = h.Expression
term.Reading = h.Reading
term.addTermTags(h.TermTags...)
term.Score = calculateTermScore(0, h)
term.Score = calculateTermScore(1, h)
}
terms = append(terms, term)
}