Get time spent during current review in reviewer_will_answer_card hook?


I’m currently attempting to modify the Pass/Fail add-on to do what I proposed here (grading cards easy/hard based on time spent). I think I’ve figured most of it out, but I’m missing one crucial aspect: How can I retrieve the time spent by the user on the current review? Historical data can be gotten from the review log, but if I understand it right, this hook is required to modify the grade assigned to a card, and the time is not in the revlog yet.

Try card.time_taken().



great idea! Could you implement some way to run addon only on selected decks (conf file)? This addon would work ideally with translation of words but would be very poor for learning for example grammar etc.

1 Like