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 duplicate addon #177

Open pranav517517 opened 3 years ago

pranav517517 commented 3 years ago

create duplicate addon ?

[ Please mention the add-on in the issue title as follows: "[Add-on name] My issue" ]

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.42 (8eebfe18) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2 Platform: Windows 10 Flags: frz=True ao=True sv=2 Add-ons, last update check: 2021-05-15 11:03:39

Caught exception: Traceback (most recent call last): File "C:\Users\davin\AppData\Roaming\Anki2\addons21\2126361512\browser_createduplicate.py", line 97, in a.triggered.connect(lambda , b=self: onCreateDuplicate(b)) File "C:\Users\davin\AppData\Roaming\Anki2\addons21\2126361512\browser_create_duplicate.py", line 100, in onCreateDuplicate createDuplicate(self) File "C:\Users\davin\AppData\Roaming\Anki2\addons21\2126361512\browser_create_duplicate.py", line 64, in createDuplicate mw.col.decks.get(deck)['mid'] = model['id'] File "anki\decks.py", line 231, in get TypeError: int() argument must be a string, a bytes-like object or a number, not 'dict' ]

How can we reproduce the problem?

i dont know use windows or linux ubuntu there are same errors

[ What were you doing when the problem occurred? ] using the addon after opening browsing the cards

Expected behavior: [ What you expected to happen ]

Actual behavior: [ What actually happened ] Untitled

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

Version information

Anki

[ Please head to HelpAbout Anki and Paste the version string here, e.g.: ]

[ Version 2.0.47 ] [ Qt 4.8.1 PyQt 4.9.1 ]

System