glutanimate / anki-addons-misc

Various add-ons I've written for Anki
https://ankiweb.net/shared/addons/
GNU Affero General Public License v3.0
170 stars 56 forks source link

Create Filtered Deck from the Browser: Doesn't work on latest Anki (to date), error occurs #183

Open camerooncameroon opened 2 years ago

camerooncameroon commented 2 years ago

Which add-on is affected?

Create Filtered Deck from the Browser

Prerequisite checklist

[ Please enter an [ x ] character to confirm the points below: ]

What is the problem/feature you would like to see fixed/implemented?

Error An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed. If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem. When you've discovered the add-on that is causing the problem, please report the issue on the add-on support site. Debug info: Anki 2.1.49 (dc80804a) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2 Platform: Windows 10 Flags: frz=True ao=True sv=3 Add-ons, last update check: 2021-11-21 12:00:59

Caught exception: Traceback (most recent call last): File "C:\Users\Asus\AppData\Roaming\Anki2\addons21\861263371\browser_create_filtereddeck.py", line 31, in a.triggered.connect(lambda , b=self: createFilteredDeck(b)) File "C:\Users\Asus\AppData\Roaming\Anki2\addons21\861263371\browser_create_filtered_deck.py", line 24, in createFilteredDeck self.mw.onCram(search) TypeError: onCram() takes 1 positional argument but 2 were given

How can we reproduce the problem?

Perhaps try to use the addon on similar configuration as mine

[ What were you doing when the problem occurred? ]

I tried to use the addon on my configuration, selected items in card browser, clicked on Create filtered Deck based on this Search and got into the error screen.

Reproducible?: [ Can you reliably reproduce the issue by following the steps above? ] Yes.

Version information

Anki

Version ⁨2.1.49 (dc80804a)⁩ Python 3.8.6 Qt 5.14.2 PyQt 5.14.2

System