Bug: if sync is enabled for profile, then we have alot of recursive
calls to loadProfile method because main window is still active until
sync is ended. And this freezes Anki app.
* clearUnusedTags and replaceTags are added
* added clearUnusedTags and replaceTags
* added clearUnusedTags and replaceTags
* removed whitespaces and indentations
* removed white spaces and indentations
* added removeEmptyNotes
* clearUnusedTags and replaceTags are added
* added clearUnusedTags and replaceTags
* added clearUnusedTags and replaceTags
* removed whitespaces and indentations
* removed white spaces and indentations
* Server no longer hangs on client disconnects
* Changed timeout and am now catching errors explicitly
Co-authored-by: KanjiEater <kanjieat3r@gmail.com>
- Sound and video share same [sound:..] tag. See 0c08ff5317/pylib/anki/sound.py (L33)
- Tested and verified picture is added and video is added when `addNote` API.
* Don't call note.dupeOrEmpty when mode is 'deck'
* Update return type to be consistent with latest note.duplicateOrEmpty
* Fix main deck ID not always being included
* Add endpoint to retrieve collection stats report
* Create separate test for statistics
* Add test for collectionStats
* Fixed typo
* Change endpoint name to use a verb
* Change name to getCollectionStatsHTML
* Allow stats for whole collection
* Allow stats for whole collection
* Add endpoint to retrieve collection stats report
* Create separate test for statistics
* Add test for collectionStats
* Fixed typo
* Change endpoint name to use a verb
* Change name to getCollectionStatsHTML
In reference to issue #146
Also added the `deleteMediaFile` when dealing with urls.
The new functionality of `writeData` means that is there is a name conflict it will rename the file. This way the behavior of your api does not change.
Only potential issues I see with this is that the file is `trashed` but not deleted. So is only cleared up on the usual clear up.
Test locally using my own Anki install at `2.1.22` and POST man to create new media