Luca448 commited on
Commit
b02f9a1
·
1 Parent(s): c7856be

Savestate: Bump version to force frontend reload for the Anki repetition fix

Browse files
Files changed (2) hide show
  1. index.html +1 -1
  2. src/views/learn/learn-view.js +11 -1
index.html CHANGED
@@ -51,7 +51,7 @@
51
  </head>
52
  <body class="dark-theme in-chat-view">
53
 
54
- <div id="live-version-badge" style="position: fixed; top: 50px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--text-secondary); opacity: 0.6; z-index: 99999; pointer-events: none; font-weight: 500; font-family: monospace; letter-spacing: 1px; background: rgba(0,0,0,0.2); padding: 2px 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.05);">BUILD 1.1.56</div>
55
 
56
  <!-- SVG Filters for Liquid Glass Refraction -->
57
  <svg width="0" height="0" style="position: absolute; pointer-events: none;">
 
51
  </head>
52
  <body class="dark-theme in-chat-view">
53
 
54
+ <div id="live-version-badge" style="position: fixed; top: 50px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--text-secondary); opacity: 0.6; z-index: 99999; pointer-events: none; font-weight: 500; font-family: monospace; letter-spacing: 1px; background: rgba(0,0,0,0.2); padding: 2px 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.05);">BUILD 1.1.57</div>
55
 
56
  <!-- SVG Filters for Liquid Glass Refraction -->
57
  <svg width="0" height="0" style="position: absolute; pointer-events: none;">
src/views/learn/learn-view.js CHANGED
@@ -380,7 +380,17 @@ Antworte AUSSCHLIESSLICH mit einem validen JSON-Objekt ohne Markdown-Block drumh
380
 
381
  handleFeedback(quality) {
382
  const card = this.dueCards[this.currentCardIndex];
383
- db.updateCardProgress(card.id, quality);
 
 
 
 
 
 
 
 
 
 
384
  this.currentCardIndex++;
385
  this.renderStudyMode();
386
  }
 
380
 
381
  handleFeedback(quality) {
382
  const card = this.dueCards[this.currentCardIndex];
383
+
384
+ if (!this.isFreePractice) {
385
+ db.updateCardProgress(card.id, quality);
386
+ }
387
+
388
+ // Anki-Algorithmus: Wenn die Karte komplett vergessen wurde (0 = Nochmal),
389
+ // stellen wir sie ans Ende der aktuellen Lern-Session an, bis sie sitzt!
390
+ if (quality === 0) {
391
+ this.dueCards.push(card);
392
+ }
393
+
394
  this.currentCardIndex++;
395
  this.renderStudyMode();
396
  }