You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: begin deprecating qualifiedID for cards (#858)
error prone manual string manipulation. Broke after cards given `c-{id}`
prefix.
replacing in-place now w/ structured represnetation (object) of same
data
@@ -224,7 +225,7 @@ export class SessionController extends Loggable {
224
225
for(leti=0;i<dueCards.length;i++){
225
226
constcard=dueCards[i];
226
227
this.reviewQ.add(card);
227
-
report+=`\t${card.qualifiedID}}\n`;
228
+
report+=`\t${card.courseID}-${card.cardID}\n`;
228
229
}
229
230
this.log(report);
230
231
}
@@ -244,7 +245,7 @@ export class SessionController extends Loggable {
244
245
for(leti=0;i<newContent.length;i++){
245
246
if(newContent[i].length>0){
246
247
constitem=newContent[i].splice(0,1)[0];
247
-
this.log(`Adding new card: ${item.qualifiedID}`);
248
+
this.log(`Adding new card: ${item.courseID}-${item.cardID}`);// revealed bug here w/ new prefixes. osbserved log "Adding new card: 5e627b7f630998243834152aa00920f5-c"
248
249
this.newQ.add(item);
249
250
n--;
250
251
}
@@ -264,6 +265,7 @@ export class SessionController extends Loggable {
264
265
}
265
266
266
267
publicnextCard(
268
+
// [ ] this is often slow. Why?
267
269
action:
268
270
|'dismiss-success'
269
271
|'dismiss-failed'
@@ -373,7 +375,6 @@ export class SessionController extends Loggable {
0 commit comments