Elasped Secs & Is There A Reference For Custom Scheduling?

Well first off,

  1. Is there a reference for what information is available to you in the custom scheduler and what it means.
    I’m aware this link from the deck options in the manual, but neither are very descriptive of what everything means.

I ask because

  1. I’m trying to incorporate “over due time” for learning cards. Make them progress faster if you answer correctly past the due time.

I thought I could use learning.elapsedSecs for this but it doesn’t seem to behave the way I expect. When I log it, it frequently does weird things.

My scheduler code during these screenshots

/**
 * @param {ReviewStates} states 
 */
let main = (states) => {
    /**
     * @param {AnswerButton} _state 
     * @returns {LearningState}
     */
    let getLearningState = (_state) => {
        if (states.current.filtered) {
            return _state.filtered.rescheduling.originalState;
        }
        return _state.normal;
    }
    let current = getLearningState(states.current);
    // let again = getLearningState(states.again);
    // let hard = getLearningState(states.hard);
    let good = getLearningState(states.good);
    // let easy = getLearningState(states.easy);
    if (current.learning) {
        let eSecs = current.learning.elapsedSecs;
        console.log(
        "current", JSON.stringify(current, null, 1.6) +
        `\n incorporating ${eSecs} secs!\n ` ,
        "hours: ", Math.floor(eSecs / (60*60)),
        " mins: ", Math.floor((eSecs % (60*60)) / 60),
        " secs: ",  Math.floor((eSecs % (60*60)) % 60));
        if ( good.learning) {
            // vv Turned on for 1st screenshot vv
            //good.learning.scheduledSecs = 3*60;
        }
    }
}
// DO NOT END WITH COMMENT. PUT EXTRA LINE
main(states);

I’d like to know too, I’m guessing there isn’t one. I’ve made my own custom scheduler stuff but I never dealt with the learning steps, I only customized review.

This looks a like clear bug in the scheduler code. Could be the case in the 2a screenshot is a bug too.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.