Anki/anki
Damien Elmes 0cce540d83 enforce schema version; allow importing+exporting v2 scheduler
To avoid all sorts of problems, we need to ensure cards scheduled with
the V2 scheduler are not studied in older clients. Unfortunately we
can't just bump the file's schema version, as the existing clients will
freely import files created with newer versions. This patch changes
that, so things should be a bit easier in the future.

In the mean time, we need a way to prevent older clients from importing
files created with the V2 scheduler. To do this, we switch to using a
'collection.anki21' file in the archive, and include a dummy collection
.anki2 file.

The code has been tested with both deck and collection packages, but
exporting deck packages w/ scheduling info will remain disabled until
the V2 scheduler has had more testing.
2018-01-29 14:12:04 +10:00
..
importing enforce schema version; allow importing+exporting v2 scheduler 2018-01-29 14:12:04 +10:00
template move regex flags to start of string 2017-12-11 16:42:19 +10:00
__init__.py bump version 2018-01-27 15:48:27 +10:00
cards.py drop experimental prewrap mode 2017-10-25 19:18:00 +10:00
collection.py add option to show day learn cards before reviews 2018-01-20 16:07:57 +10:00
consts.py use a constant for the starting factor 2017-02-08 17:28:12 +10:00
db.py prevent exceptions when invalid utf-8 in db 2018-01-20 11:23:49 +10:00
decks.py make preview delay customizable 2018-01-20 15:26:11 +10:00
errors.py merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
exporting.py enforce schema version; allow importing+exporting v2 scheduler 2018-01-29 14:12:04 +10:00
find.py re.escape leaves _ alone in python 3 2018-01-27 15:15:07 +10:00
hooks.py require decorator 2017-07-17 13:18:56 +10:00
lang.py add catalan 2017-12-03 16:06:56 +10:00
latex.py fix 'unclosed file' warnings with python -Wall 2017-12-11 16:38:15 +10:00
media.py fix 'unclosed file' warnings with python -Wall 2017-12-11 16:38:15 +10:00
models.py Simplify comparisons 2017-09-10 15:32:51 +02:00
mpv.py linux mpv doesn't understand --input-media-keys 2018-01-21 10:34:29 +10:00
notes.py Stop inheriting from object 2017-02-07 00:21:33 +02:00
sched.py add old sched code back 2018-01-14 16:55:07 +10:00
schedv2.py fix error on final step of lapsed card 2018-01-22 12:10:39 +10:00
sound.py linux mpv doesn't understand --input-media-keys 2018-01-21 10:34:29 +10:00
stats.py Allow to better translate "in x minutes" 2017-11-30 20:03:51 +01:00
statsbg.py merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
stdmodels.py different cloze colour in night mode 2017-12-20 16:05:28 +10:00
storage.py enforce schema version; allow importing+exporting v2 scheduler 2018-01-29 14:12:04 +10:00
sync.py work around some decks with mod time stored as string 2018-01-19 11:42:06 +10:00
tags.py Merge pull request #169 from luoliyan/regex-tag-removal 2017-02-22 20:51:23 +10:00
utils.py fix time translation patch 2017-12-04 12:33:23 +10:00