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

I put up an initial version now if you want to try it:

It appears to work from my initial testing, but I haven’t thoroughly tested all configuration options and how they interact. Keep in mind that including / excluding decks does not automatically apply to sub-decks currently.

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