kuuuube
98e0bb35fb
Relax required anki version
2024-11-06 17:33:40 -08:00
kuuuube
a382fdfe85
Add support for flags
2024-11-05 18:29:10 -08:00
Philipp Matthias Schäfer
8bfb4049dc
Replace duplicate code with call to addMediaFromNote
2024-10-08 20:26:20 -07:00
Philipp Matthias Schäfer
6eea9f9db4
Fix year component of Anki version
2024-10-06 17:51:24 -07:00
Philipp Matthias Schäfer
c89dbf2062
Make string an f-string
...
so the directives within the string will get evaluated.
2024-10-06 17:51:24 -07:00
Philipp Matthias Schäfer
ba67c52d9b
Use non-deprecated snake case names of collection methods
2024-10-05 11:30:30 -07:00
Philipp Matthias Schäfer
cc027f8ab8
Replace calls to deprecated flush() with col.update_note/card
...
The changes passes skip_undo_entry to update_note/card, because the
implementation of the deprecated flush() method did so. Whether this is the
right decision for our use case was not checked/thought about.
2024-10-05 11:30:30 -07:00
Philipp Matthias Schäfer
dc96cdc76c
Switch from deprecated names of anki/utils.py functions
2024-10-05 11:30:30 -07:00
Philipp Matthias Schäfer
6a2cc2dec1
Remove calls to deprecated (and empty) method autosave
2024-10-05 11:30:30 -07:00
Philipp Matthias Schäfer
172d1fb20f
Require current Anki version
2024-10-05 11:30:30 -07:00
Diogo Cadavez
0514569621
added method to retrieve the active profile
2024-07-08 18:58:57 -07:00
Diogo Cadavez
81c39a2e42
added note modification time to notesIndo and created notesModeTime function
2024-07-08 18:58:57 -07:00
Richard Hajek
f52e0c2e24
addNotes reports errors, aborts on any error
2024-06-23 20:43:23 +09:00
Robert Irelan
aab9346deb
sync: return error if full sync required or auth not set up
...
I run Anki on a headless machine (using Xvfb on Linux), and have clients
interact with it using Anki Connect. Currently, if a full sync is
required, I have no way of knowing about it from any error that Anki
Connect returns. It's easy to detect if a full sync would be required,
so return an error in this case.
2024-06-23 07:50:55 +09:00
jay-lee-code
7c171d6722
Added nextReviews field to cardsInfo, (similar to guiCurrentCard)
2024-06-09 11:30:57 -07:00
Tategoto Azarasi
1c428c8627
remove try-except in updateNoteModel
...
Signed-off-by: Tategoto Azarasi <2724167997@qq.com>
2024-05-09 21:43:12 -07:00
Tategoto Azarasi
b77327fb00
add updateNoteModel
...
Signed-off-by: Tategoto Azarasi <2724167997@qq.com>
2024-05-09 21:43:12 -07:00
Eloy Robillard
bbf271c5ac
Return reason note cannot be added in new api endpoint
2024-02-26 20:34:24 -08:00
DegrangeM
2f7bc2e78e
Fix requestPermission popup
2024-02-24 12:08:21 -08:00
aldoWan
d27f54a4fe
Ensured forgotten cards are correctly synchronized with ankiweb by using ScheduleCardsAsNew
...
Resetting the database seemed not enough anymore, it's better to call the same function as ankiDroid is using: ScheduleCardsAsNew
2024-02-20 19:42:21 -08:00
Philipp Matthias Schäfer
2996476e03
Remove call to syncDelete
...
The method does no longer exist as of version 2.1.45, which is the minimum
supported version as of creation of this commit.
2024-01-21 13:52:23 -08:00
Philipp Matthias Schäfer
510f47fd08
Replace method calls of methods marked deprecated
...
There are more methods that have replacements according to the common pattern of
going from camelCase to snake_case, but that are not explicitly marked
deprecated.
Reference was tag 2.1.45 of Anki, as that is the minimally supported version of
anki-connect as of creating this commit.
2024-01-21 13:52:17 -08:00
Philipp Matthias Schäfer
977871257a
Remove internal method stopEditing
...
The only method it calls, maybeReset, contains only a pass statement and has
thus never any effect.
2024-01-21 13:52:06 -08:00
AuroraWright
29260d6a00
Add reorderCards property to guiBrowse, add guiSelectNote
2024-01-18 19:59:38 -08:00
Kardia
50d062e6ca
add apis to retrieve full model data by name and id
2024-01-04 12:33:02 -08:00
2de0798fc1
Fix guiEditNote returns error
...
Committing on behalf of Oleg Mitrofanov
2024-01-01 18:09:03 -08:00
Alexei Yatskov
b896b66736
Merge pull request #396 from mikkkee/master
2023-07-08 08:02:14 -07:00
mikkkee
14a8a84150
Fix previous commit with version check for Anki and Qt
2023-07-07 01:03:46 +08:00
Alexei Yatskov
9f7dccaca0
Merge pull request #392 from mikkkee/master
...
Add a method to bring up Import File dialog
2023-07-05 20:06:08 -07:00
nihil-admirari
423d3e2aa2
Correct JSON MIME type ( Fixes #393 )
2023-06-23 09:12:28 +03:00
mikkkee
e999a44a47
Add a GUI action to bring up import file dialog with provided file path
2023-06-17 17:45:39 +08:00
ant
3892481cea
change param format for answerCards
2023-06-15 12:49:02 +01:00
Antistic
0012245c57
add new action: answerCards
2023-06-14 19:38:50 +01:00
YuLong Yao
53dba8003b
api: add guiUndo action
2023-05-18 19:56:48 +08:00
Austin Siew
accbc53e5d
added modelTemplateRename, modelTemplateReposition, modelTemplateAdd, modelTemplateRemove
2023-04-13 19:30:49 -06:00
Austin Siew
ed508babbf
merged with master
2023-03-31 00:54:32 -06:00
Ren Tatsumoto
58283bdeb5
add a new action: getMediaDirPath
2023-03-21 19:47:31 +03:00
Austin Siew
a275971002
fixed formatting issue
2023-01-09 21:23:43 -07:00
Austin Siew
2ad03ddbc0
added anki 2.1.54 and 2.1.55 tests & fixed NotFoundError not working on 2.1.55
2022-12-30 20:26:58 -07:00
introt
2f50c747fb
Add getNoteTags, updateNoteTags and updateNote
...
getNoteTags returns [str ...] of tags for a given note (note: int)
updateNoteTags removes the existing tags and sets new tags
updateNote combines the old updateNoteFields and the new updateNoteTags
Closes #369
2022-12-30 13:13:31 +02:00
Austin Siew
69baea296a
added tests & documentation, removed dead code
2022-12-28 18:37:05 -07:00
Austin Siew
2d54eccb64
added modelFieldSetDescription, changed double quote strings to single quote strings
2022-12-24 04:18:24 -07:00
Austin Siew
59f75a2946
added modelFieldFonts, modelFieldSetFont, modelFieldSetFontSize
2022-12-24 04:10:56 -07:00
introt
ff4fb13428
Fix KeyError in modelFieldDescriptions
...
on older Anki versions, where field descriptions aren't available
2022-11-27 12:19:58 +02:00
introt
336dc8bb31
Added modelFieldDescriptions
...
Similar to modelFieldNames, returns a list of
note field decriptions (the text seen in the gui
editor when the field is empty)
2022-11-26 14:56:34 +02:00
Alexei Yatskov
82ca4b847d
Merge pull request #350 from Aquafina-water-bottle/get_reviews_of_card
...
Added getReviewsOfCards
2022-09-20 17:53:03 -07:00
Austin Siew
a8905a4c22
getReviewsOfCards: changed inner lists into dictionaries, removed cid within the inner list
2022-09-20 17:46:26 -06:00
Austin Siew
c0c922d27c
changed getReviewsOfCard -> getReviewsOfCards, changed result to be formatted in a dictionary rather than a list
2022-09-13 17:12:20 -06:00
Scott Noyes
6f87f03519
Fix issue #352
2022-09-12 09:07:59 -05:00
Austin Siew
6e4bbfa0d6
Added getReviewsOfCard
2022-09-05 00:29:03 -06:00