AnKing-VIP / advanced-browser

Anki add-on with card browser enhancements.
GNU General Public License v3.0
56 stars 13 forks source link

overdue - empty when card in filtered deck #146

Closed ijgnd closed 1 year ago

ijgnd commented 1 year ago

This problem is a limitation that has been in AB since the overdue calculation wa introduced as far as I see.

the function valueForOverdue from advanced_fields.py returns None when the card is in a filtered deck because of its first line (if odid ... return).

Cards in filtered decks can also be overdue and I see no technical reason for excluding them.

I have a function for calculating the overdue ivl that seems to work also for filtered decks in my sidebar addon in src/helper_functions around line 50

though maybe it's better to fix the AB add-on by also passing the odue value