Skip to content

Commit 4cc4deb

Browse files
committed
[FIX] Fixed wrong function name
1 parent 96bc618 commit 4cc4deb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

addon/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ def setup_browser_menu(browser):
158158

159159

160160

161-
add_note_original = anki.collection.Collection.add_note
161+
add_note_no_hook = anki.collection.Collection.add_note
162162

163163
def add_note(col, note, deck_id):
164-
r = add_note_original(col, note, deck_id)
164+
r = add_note_no_hook(col, note, deck_id)
165165
aqt.mw.migaku_kanji_db.on_note_update(note.id, deck_id, is_new=True)
166166
return r

0 commit comments

Comments
 (0)