Go to file
Arthur Milchior b78480fe52 New model can be edited without full sync
This commit solves a problem that I had many time in the past. When I
create a new model, I usually want to edit it. Clone of existing
models present no interest by themselves. And as soon as I edit it, I
need to do a full sync.

As far as I understand ankiweb (which is sadly closed source), the
full sync is required because ankiweb needs to know that the model
associated to note type on the server did change. But since the model
is new, it has no note type associated to on the server, so there is
no need to do a full sync immediatly. Since the model is new, it also
means there is no risk of the inconsistency with a change made in
another computer/smartphone.

Thus, when a field/template is added, I check that the model is not
new by checking both whether it's id is not null, and also that it's
usn is not -1. (I set usn early in the model's life)

If it does not make into anki, then it'll be an add-on. But it's worth
a try first.
2019-10-24 04:44:52 +02:00
anki New model can be edited without full sync 2019-10-24 04:44:52 +02:00
aqt fix lint 2019-10-22 12:22:30 +10:00
designer remove open backup folder link 2019-07-22 10:49:22 +10:00
tests fix negative due dates in filtered decks 2019-09-24 15:38:33 +10:00
tools reduce test verbosity 2019-03-05 08:57:00 +10:00
web use screen-relative max height/width 2019-06-06 09:53:50 +10:00
.gitignore move versionWithBuild into anki module 2019-02-28 08:37:42 +10:00
.pylintrc enable some warnings in pylint 2019-03-04 17:27:39 +10:00
.travis.sh Use jsonschema for add-on manifests 2019-04-24 23:42:49 +03:00
.travis.yml remove travis notifications 2019-04-25 13:33:18 +10:00
anki.1 merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
anki.desktop update anki.desktop (thanks to julian) 2017-01-24 18:29:31 +10:00
anki.png merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
anki.xml update file associations 2018-08-20 14:38:22 +10:00
anki.xpm merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
LICENSE tweak translation license 2019-09-24 15:36:06 +10:00
LICENSE.logo clarify logo license 2017-09-06 17:01:23 +10:00
Makefile add missing license file 2018-03-17 10:37:50 +10:00
pkgkey.asc add public key for release signing 2018-09-18 10:40:45 +10:00
README.contributing Update README.contributing 2018-07-10 09:13:10 -07:00
README.development use locales instead of two digit lang codes 2019-09-23 21:18:03 +10:00
README.md mention README.contributing in README.md 2019-04-21 19:07:10 +10:00
requirements.txt as it's only a testing requirement, move mock into docs instead 2019-04-29 12:40:44 +10:00
runanki explicit python3 in runanki, remove /usr/share ref 2016-06-28 15:47:09 +10:00

Anki

This is the development branch of Anki.

For stable builds, please see https://apps.ankiweb.net.

For non-developers who want to try this development code, the easiest way is to use a binary package - please see https://anki.tenderapp.com/discussions/beta-testing

To run from source, please see README.development.

If you are interested in contributing changes to Anki, please see README.contributing before you begin work.

Build Status