mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
only score candidates without scores
This commit is contained in:
parent
6704b8a8c4
commit
5739ec2843
2 changed files with 2 additions and 1 deletions
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
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue