Bug/Issue Description
add-on gives an error when trying to update the entire collection.
To Reproduce
To reproduce:
Open Options
Head to advanced tab
Try to update the entire collection
Error Message
Anki 2.1.65 (aa9a734f) Python 3.9.15 Qt 6.4.3 PyQt 6.4.0
Platform: Windows-10-10.0.19045 Flags: frz=True ao=True sv=2
Add-ons, last update check: 2023-07-03 13:47:15
Caught exception:
Traceback (most recent call last):
File "C:\Users\<user>\AppData\Roaming\Anki2\addons21\368380974\src\sync.py", line 87, in sync_collection thresholds[key] = deck_conf['lapse']['leechFails'] KeyError: 'lapse'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\<user>\AppData\Roaming\Anki2\addons21\368380974\src\options.py", line 551, in <lambda> self.ui.syncUpdateButton.clicked.connect(lambda: sync_collection(True))
File "C:\Users\<user>\AppData\Roaming\Anki2\addons21\368380974\src\sync.py", line 93, in sync_collection if deck_conf['id'] == key: TypeError: list indices must be integers or slices, not str.
Additional Context
Originally reported on AnkiWeb.
Bug/Issue Description add-on gives an error when trying to update the entire collection.
To Reproduce To reproduce:
Error Message
Additional Context Originally reported on AnkiWeb.