only score candidates without scores

This commit is contained in:
Hongbo Wu
2024-05-29 18:47:22 +08:00
parent 6704b8a8c4
commit 5739ec2843
2 changed files with 2 additions and 1 deletions

1
ml/digest-score/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.pkl

View File

@ -191,7 +191,7 @@ const rankCandidates = async (
const newScores = await getScores(data)
// update scores for candidates
candidates.forEach((item) => {
unscoredCandidates.forEach((item) => {
item.score = newScores[item.id]['score'] || 0
})