brownbat / autoEaseFactor

Adjust ease factors in Anki based off of performance in order to hit a target success rate.
GNU General Public License v3.0
37 stars 8 forks source link

AttributeError: '_Collection' object has no attribute 'find_cards' #12

Closed RadekZareba closed 4 years ago

RadekZareba commented 4 years ago

Windows 10 Anki version 2.1.22

I can see this after adjust ease factors to performance.

Anki 2.1.22 (0ecc189a) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1 Platform: Windows 10 Flags: frz=True ao=True sv=2 Add-ons, last update check: 2020-09-12 14:22:25

Caught exception: Traceback (most recent call last): File "C:\Users\Radoslaw Zareba\AppData\Roaming\Anki2\addons21\1672712021\autoEaseFactor.py", line 299, in did=deck_id: adjust_ease_factors(did)) File "C:\Users\Radoslaw Zareba\AppData\Roaming\Anki2\addons21\1672712021\autoEaseFactor.py", line 225, in adjust_ease_factors card_ids = mw.col.find_cards(f'deck:"{deck_name}"') AttributeError: '_Collection' object has no attribute 'find_cards'

brownbat commented 4 years ago

Closing as this is a duplicate of #11 --- latest version should fix for 2.1.26+, but no longer includes the option for 2.1.22 unfortunately. 2.1.22 had a different architecture for finding cards and will take a bit more development...