Anki/anki
Damien Elmes 7afe6a9a7d convert groups to json; use timestamp ids for all but default
Rather than use a combination of id lookups on the groups table and a group
configuration cache in the scheduler, I've moved the groups and group config
into json objects on the deck table. This results in a net saving of code and
saves one or more DB lookups on each card answer, in exchange for a small
increase in deck load/save work.

I did a quick survey of AnkiWeb, and the vast majority of decks use less than
100 tags, and it's safe to assume groups will follow a similar pattern.

All groups and group configs except the default one will use integer
timestamps now, to simplify merging when syncing and importing.

defaultGroup() has been removed in favour of keeping the models up to date
(not yet done).
2011-08-27 17:13:04 +09:00
..
importing don't lstrip the bom 2011-04-28 09:24:04 +09:00
template add [] to cloze 2011-04-29 11:43:06 +09:00
__init__.py prevent people from shooting themselves in the foot 2011-04-28 09:31:48 +09:00
cards.py convert groups to json; use timestamp ids for all but default 2011-08-27 17:13:04 +09:00
consts.py restore the deletion log 2011-05-04 19:00:38 +09:00
cram.py convert groups to json; use timestamp ids for all but default 2011-08-27 17:13:04 +09:00
db.py check python version and locale on load 2011-04-28 09:24:03 +09:00
deck.py convert groups to json; use timestamp ids for all but default 2011-08-27 17:13:04 +09:00
errors.py update license link 2011-04-28 09:24:01 +09:00
exporting.py update license link 2011-04-28 09:24:01 +09:00
facts.py convert groups to json; use timestamp ids for all but default 2011-08-27 17:13:04 +09:00
find.py convert groups to json; use timestamp ids for all but default 2011-08-27 17:13:04 +09:00
groups.py change default lrn timing; leechAction doesn't need an array 2011-04-28 09:24:05 +09:00
hooks.py update license link 2011-04-28 09:24:01 +09:00
js.py add a pie graph, add average interval to ivls area 2011-04-28 09:24:00 +09:00
lang.py update license link 2011-04-28 09:24:01 +09:00
latex.py convert groups to json; use timestamp ids for all but default 2011-08-27 17:13:04 +09:00
media.py rename() 2011-04-28 09:24:05 +09:00
models.py ensure unique id on per-object add, too 2011-08-26 22:51:08 +09:00
sched.py convert groups to json; use timestamp ids for all but default 2011-08-27 17:13:04 +09:00
sound.py centralize all tmp dir access 2011-04-28 09:24:03 +09:00
stats.py update card ids 2011-08-26 22:25:20 +09:00
stdmodels.py update license link 2011-04-28 09:24:01 +09:00
storage.py convert groups to json; use timestamp ids for all but default 2011-08-27 17:13:04 +09:00
sync.py some initial sync work 2011-05-29 08:13:54 +09:00
utils.py ensure unique id on per-object add, too 2011-08-26 22:51:08 +09:00