@vue-skuilder/db 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1632,10 +1632,8 @@ var init_elo = __esm({
1632
1632
  { limit, elo: "user" },
1633
1633
  (c) => !activeCards.some((ac) => c.cardID === ac.cardID)
1634
1634
  )).map((c) => ({ ...c, status: "new" }));
1635
- const cardIds = newCards.map((c) => c.cardID);
1636
- const cardEloData = await this.course.getCardEloData(cardIds);
1637
- const scored = newCards.map((c, i) => {
1638
- const cardElo = cardEloData[i]?.global?.score ?? 1e3;
1635
+ const scored = newCards.map((c) => {
1636
+ const cardElo = c.elo ?? 1e3;
1639
1637
  const distance = Math.abs(cardElo - userGlobalElo);
1640
1638
  const rawScore = Math.max(0, 1 - distance / 500);
1641
1639
  const samplingKey = rawScore > 0 ? Math.random() ** (1 / rawScore) : 0;