File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -329,7 +329,7 @@ export default class SRPlugin extends Plugin {
329329 id : "srs-cram-flashcards" ,
330330 name : t ( "CRAM_ALL_CARDS" ) ,
331331 callback : async ( ) => {
332- await this . sync ( ) ;
332+ await this . sync ( FlashcardReviewMode . Cram ) ;
333333 if ( this . data . settings . openViewInNewTab ) {
334334 this . tabViewManager . openSRTabView ( FlashcardReviewMode . Cram ) ;
335335 } else {
@@ -471,7 +471,7 @@ export default class SRPlugin extends Plugin {
471471 }
472472
473473 // @logExecutionTime ()
474- async sync ( ) : Promise < void > {
474+ async sync ( reviewMode = FlashcardReviewMode . Review ) : Promise < void > {
475475 // this.clock_start = Date.now();
476476 const settings = this . data . settings ;
477477
@@ -541,7 +541,7 @@ export default class SRPlugin extends Plugin {
541541 this . remainingDeckTree = DeckTreeFilter . filterForRemainingCards (
542542 this . questionPostponementList ,
543543 this . deckTree ,
544- FlashcardReviewMode . Review ,
544+ reviewMode ,
545545 ) ;
546546 const calc : DeckTreeStatsCalculator = new DeckTreeStatsCalculator ( ) ;
547547 this . cardStats = calc . calculate ( this . deckTree ) ;
You can’t perform that action at this time.
0 commit comments