Skip to content

Commit

Permalink
tweak param
Browse files Browse the repository at this point in the history
  • Loading branch information
szdytom committed Jul 2, 2024
1 parent 8763828 commit b17717b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@ export class RatingStore {

if (outcome === 1) {
item.rating = Math.max(item.rating, 8.5);
} else if (old_rating < 12) { // forgive mistype
item.rating = Math.min(item.rating, 6);
} else if (item.rating > 6) {
let lost = item.rating - 6;
item.rating = 6;
item.confidence += lost;
}
await tx.store.put(item);
await tx.done;
Expand Down

0 comments on commit b17717b

Please sign in to comment.