Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix number type #84

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions anki-editor.el
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ Where the subtree is created depends on PREFIX."
"Request AnkiConnect for updating fields and tags of NOTE."
(let* ((oldnote (caar (anki-editor-api-with-multi
(anki-editor-api-enqueue 'notesInfo
:notes (list (anki-editor-note-id note)))
:notes (list (string-to-number (anki-editor-note-id note))))
(anki-editor-api-enqueue 'updateNoteFields
:note (anki-editor-api--note note)))))
(tagsadd (cl-set-difference (anki-editor-note-tags note)
Expand All @@ -528,11 +528,11 @@ Where the subtree is created depends on PREFIX."
(anki-editor-api-with-multi
(when tagsadd
(anki-editor-api-enqueue 'addTags
:notes (list (anki-editor-note-id note))
:notes (list (string-to-number (anki-editor-note-id note)))
:tags (mapconcat #'identity tagsadd " ")))
(when tagsdel
(anki-editor-api-enqueue 'removeTags
:notes (list (anki-editor-note-id note))
:notes (list (string-to-number (anki-editor-note-id note)))
:tags (mapconcat #'identity tagsdel " "))))))

(defun anki-editor--set-failure-reason (reason)
Expand Down