only score candidates without scores
This commit is contained in:
1
ml/digest-score/.gitignore
vendored
Normal file
1
ml/digest-score/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
*.pkl
|
||||
@ -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
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user