iamjustkoi / LeechToolkit

Toolkit for adding extra leech and lapse functionality to Anki.
MIT License
5 stars 1 forks source link

Arch Linux - An error occured when doing an collection update in 23.12.1 #25

Open Fastball2880 opened 6 months ago

Fastball2880 commented 6 months ago

Bug/Issue Description Can't update whole collection. This works previously in Shige's version of this addon Steps to reproduce:

  1. Go to "Leech Toolkit Options" from "Tools"
  2. Go to "Advanced" and tap "Update Collection"
  3. A error will occur, and appear from Anki that says it needs troubleshooting

Error Message

Anki 23.12.1 (1a1d4d54)  (ao)
Python 3.9.15 Qt 6.6.1 PyQt 6.6.1
Platform: Linux-6.8.7-arch1-1-x86_64-with-glibc2.39

Traceback (most recent call last):
  File "/home/arch/.local/share/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 "/home/arch/.local/share/Anki2/addons21/368380974/src/options.py", line 551, in <lambda>
    self.ui.syncUpdateButton.clicked.connect(lambda: sync_collection(True))
  File "/home/arch/.local/share/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

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
FSRS4Anki Helper ['759844606', 2024-04-26T11:38, 'None', '']
Image Occlusion Enhanced ['1374772155', 2022-04-09T01:15, 'None', '']
Leech Toolkit ['368380974', 2024-04-01T12:02, 'None', '']
Review Heatmap ['1771074083', 2022-06-29T19:43, 'None', '']
The KING of Button Add-ons ['374005964', 2024-01-27T03:19, 'None', '']
Zoom24 - Keep zoom level after reboot Fixed by Shige ['1923741581', 2024-05-01T19:23, 'None', mod]
extended editor for field for tables searchreplace ['805891399', 2023-07-31T08:12, 'None', mod]

===IDs of active AnkiWeb add-ons===
1374772155 1771074083 1923741581 368380974 374005964 759844606 805891399

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])

Screenshots/Visuals d7lr8ta073

System/Debug Info

Anki 23.12.1 (1a1d4d54)  (ao)
Python 3.9.15 Qt 6.6.1 PyQt 6.6.1
Platform: Linux-6.8.7-arch1-1-x86_64-with-glibc2.39

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
FSRS4Anki Helper ['759844606', 2024-04-26T11:38, 'None', '']
Image Occlusion Enhanced ['1374772155', 2022-04-09T01:15, 'None', '']
Leech Toolkit ['368380974', 2024-04-01T12:02, 'None', '']
Review Heatmap ['1771074083', 2022-06-29T19:43, 'None', '']
The KING of Button Add-ons ['374005964', 2024-01-27T03:19, 'None', '']
Zoom24 - Keep zoom level after reboot Fixed by Shige ['1923741581', 2024-05-01T19:23, 'None', mod]
extended editor for field for tables searchreplace ['805891399', 2023-07-31T08:12, 'None', mod]

===IDs of active AnkiWeb add-ons===
1374772155 1771074083 1923741581 368380974 374005964 759844606 805891399

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])

Additional Context Any other context that might seem important.