@@ -151,7 +151,7 @@ def tools_open_org_note():
151151 elif aqt .mw .state == 'deckBrowser' or aqt .mw .state == 'overview' :
152152 current_card = bcard ()
153153 # current_side = aqt.mw.reviewer.state
154- note_id = current_card .id
154+ note_id = current_card .nid
155155 # print('CARD ID::::', note_id)
156156 open_anki_note (note_id )
157157 except Exception : # just in case, pylint:disable=broad-except
@@ -162,7 +162,7 @@ def __init__(self):
162162 super ().__init__ (aqt .qt .QIcon (ICON_PATH ), open_btn_text )
163163 def request_open_note ():
164164 if check_browser ():
165- note_id = bcard ().id
165+ note_id = bcard ().nid
166166 # print("CARD ID:", note_id)
167167 open_anki_note (note_id )
168168
@@ -185,10 +185,10 @@ def editor_button():
185185 def createOpenButton (editor ):
186186 note_id = ''
187187 if check_browser ():
188- note_id = bcard ().id
188+ note_id = bcard ().nid
189189 # print("CARD ID:", note_id)
190190 else :
191- note_id = card ().id
191+ note_id = card ().nid
192192 # print("EDITOR CARD:", note_id)
193193 open_anki_note (note_id )
194194
@@ -216,7 +216,7 @@ def context_menu_open_note():
216216 # current_side = aqt.mw.reviewer.state
217217 elif web_view .objectName () == 'mainText' : # card template dialog
218218 current_card = window .card
219- note_id = current_card .id
219+ note_id = current_card .nid
220220 # print('CARD ID::::', note_id)
221221 open_anki_note (note_id )
222222 except Exception : # just in case, pylint:disable=broad-except
0 commit comments