Anki/anki
Damien Elmes 8997d8cc8b track all reps & time on a per-day basis
We did away with the stats table because it's impossible to merge it, so the
revlog is canonical now. But we also want a cheap way to display to the user
how much time or how many cards they've done over the day, even if their study
is split into multiple sessions. We were already storing the new cards of a
day in the top level groups, so we just expand that out to log the other info
too.

In the event of a user studying in two places on the same day without syncing,
the counts will not be accurate as they can't be merged without consulting the
revlog, which we want to avoid for performance reasons. But the graphs and
stats do not use the groups for reporting, so the inaccurate counts are only
temporary. Might need to mention this in an FAQ.

Also, since groups are cheap to fetch now, cards now automatically limit
timeTaken() to the group limit, instead of relying on the calling code to do
so.
2011-09-07 18:48:29 +09:00
..
importing move tags into deck; code into separate file 2011-08-28 13:44:29 +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 track all reps & time on a per-day basis 2011-09-07 18:48:29 +09:00
consts.py rename a few methods for consistency 2011-08-28 13:48:17 +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 top level groups 2011-09-07 01:31:46 +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 thinko 2011-08-28 14:40:52 +09:00
find.py move group code into a registry like models 2011-08-27 23:45:55 +09:00
groups.py track all reps & time on a per-day basis 2011-09-07 18:48:29 +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 move models into the deck table 2011-08-27 22:27:09 +09:00
media.py move tags into deck; code into separate file 2011-08-28 13:44:29 +09:00
models.py top level groups 2011-09-07 01:31:46 +09:00
sched.py track all reps & time on a per-day basis 2011-09-07 18:48:29 +09:00
sound.py centralize all tmp dir access 2011-04-28 09:24:03 +09:00
stats.py top level groups 2011-09-07 01:31:46 +09:00
stdmodels.py move models into the deck table 2011-08-27 22:27:09 +09:00
storage.py top level groups 2011-09-07 01:31:46 +09:00
sync.py rename some columns for consistency 2011-09-06 21:33:19 +09:00
tags.py move tags into deck; code into separate file 2011-08-28 13:44:29 +09:00
utils.py move tags into deck; code into separate file 2011-08-28 13:44:29 +09:00