Commit Graph

634 Commits

Author SHA1 Message Date
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
306103c618 update README.md
Signed-off-by: Tategoto Azarasi <2724167997@qq.com>
2024-05-09 21:43:12 -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
4837823bce Remove GitHub specific workflow 2024-04-01 21:59:57 -07:00
24cdeeb612 README fixes 2024-03-27 21:52:15 -07:00
00dffe579d Readme updates 2024-03-26 18:26:20 -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
a17c4e42da add readme entry for new findModels* apis 2024-01-04 12:33:02 -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
2019ba75ed Rename CONTRIBUTING to MD 2023-12-31 11:01:59 -08:00
ab6349ec65 Add CONTRIBUTING file 2023-12-31 11:01:11 -08:00
Alexei Yatskov
1f7fc80b7e
Merge pull request #407 from PSeitz/patch-1
Update README.md
2023-10-09 19:16:44 -07:00
PSeitz
820300cc5c
Update README.md
add link to Anki docs in overview
2023-10-08 15:57:08 +02:00
Alexei Yatskov
4847fff790
Merge pull request #403 from Julian/auth
Make it slightly clearer how to enable authentication.
2023-09-28 20:48:43 -07:00
Julian Berman
82210ddf87 Make it slightly clearer how to enable authentication.
The README previously sort of covered this, but in particular it was not
obvious to me that the request parameter that corresponded to enabling
`apiKey` is called `key`, and not `apiKey`, which ultimately made me
have to look at the source code to figure this out (even though the word
`key` is mentioned elsewhere on the page, it still wasn't very easy to
make the connection).

This section puts all the required information in one spot.
2023-09-24 12:40:41 -04:00
Alexei Yatskov
b896b66736
Merge pull request #396 from mikkkee/master 2023-07-08 08:02:14 -07:00
mikkkee
5a153691fd Fix test timeout error 2023-07-07 20:08:33 +08: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
mikkkee
9e214e90e5 Add a test for guiImportFile 2023-07-05 22:17:30 +08:00
Alexei Yatskov
6693ab6b97
Merge pull request #394 from nihil-admirari/master
Correct JSON MIME type (Fixes #393)
2023-06-26 18:11:19 -07:00
nihil-admirari
423d3e2aa2
Correct JSON MIME type (Fixes #393) 2023-06-23 09:12:28 +03:00
mikkkee
cd66410ff3 Update documentation for new method guiImportFile 2023-06-17 17:52:14 +08: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
Alexei Yatskov
eef3be8599
Merge pull request #391 from Aquafina-water-bottle/readme_localhost
Updated Python example code to use 127.0.0.1 instead of localhost
2023-06-15 20:13:30 -07:00
Alexei Yatskov
f27e7b4331
Merge pull request #390 from antistic/feat-answer-card
add new action: answerCards
2023-06-15 20:12:37 -07:00
ant
3892481cea change param format for answerCards 2023-06-15 12:49:02 +01:00
Austin Siew
f10abcc331 docs: updated Python README to use 127.0.0.1 instead of localhost 2023-06-14 19:26:00 -06:00
Antistic
0012245c57 add new action: answerCards 2023-06-14 19:38:50 +01:00
Alexei Yatskov
41ce156114
Merge pull request #384 from feilongfl/dev-undo
add `guiUndo` action for undo review
2023-05-23 19:18:15 -07:00
YuLong Yao
5516e4826c
test: add guiUndo action 2023-05-18 19:56:48 +08:00
YuLong Yao
53dba8003b
api: add guiUndo action 2023-05-18 19:56:48 +08:00
YuLong Yao
92eeb8d749
Readme: add guiUndo action 2023-05-18 19:56:48 +08:00
Alexei Yatskov
08e5a34d6c
Merge pull request #382 from Aquafina-water-bottle/modelTemplates
Added various actions relating to model templates
2023-04-14 17:21:32 -07:00
Austin Siew
fc63bdaa17 removed unnecessary comments in test_models.py 2023-04-13 20:36:07 -06:00
Austin Siew
918d4de72a fixed accidental change in README 2023-04-13 20:33:18 -06:00