Commit graph

118 commits

Author SHA1 Message Date
Damien Elmes
dd74e73c04 include day lrn cards in forecast 2012-05-20 17:13:39 +09:00
Damien Elmes
e88bb29adf fix off by one in x axis 2012-05-18 12:01:04 +09:00
Damien Elmes
ca7662ba72 deck percentage -> percentage 2012-05-14 06:24:11 +09:00
Damien Elmes
d47b0726b0 limit y axis to integer ticks 2012-05-14 05:12:59 +09:00
Damien Elmes
0b24e56b40 hourly graph now honours period setting 2012-05-06 17:02:09 +09:00
Damien Elmes
8a4d20de16 show # of reviews per hour 2012-05-06 16:54:01 +09:00
Damien Elmes
63872f51cd add 2nd y axis label 2012-05-06 16:30:00 +09:00
Damien Elmes
782dd53d16 don't throw error when showing cram date in stats either 2012-05-06 01:09:43 +09:00
Damien Elmes
461e240d53 allow python-bundled json 2012-04-28 17:41:56 +09:00
Damien Elmes
f6b620f9ed ensure period is always 1+ 2012-04-27 10:51:13 +09:00
Damien Elmes
84134106cb derive period in review history graph from revlog, not collection crt 2012-04-24 04:35:36 +09:00
Damien Elmes
c0b1fb9c5f allow "a:" to be translated to "a :" in French 2012-04-18 04:21:58 +09:00
Damien Elmes
83f49246e3 fix due date in card stats 2012-03-25 00:44:23 +09:00
Damien Elmes
0843db03fd when graphing deck life, period = first day 2012-03-13 22:02:46 +09:00
Damien Elmes
81f2a5318f show lapses in card stats 2012-03-13 21:31:30 +09:00
Damien Elmes
f6b2e69669 remove did from notes, use model did instead 2012-03-09 09:12:27 +09:00
Damien Elmes
05782f9080 fix graphs 2012-02-24 22:32:00 +09:00
Damien Elmes
12c0c64841 translation dict 2012-01-11 17:25:36 +09:00
Damien Elmes
320bb7c82f change stats alignment 2011-12-01 17:15:17 +09:00
Damien Elmes
e8f4d04420 fix hourly retention graph 2011-12-01 13:25:40 +09:00
Damien Elmes
49c0a5dd82 add review count back 2011-11-29 17:12:08 +09:00
Damien Elmes
347bfbbff5 tweak stats layout 2011-11-29 16:48:18 +09:00
Damien Elmes
3d1756df9b tweak stats 2011-11-29 10:18:37 +09:00
Damien Elmes
bd29318168 catch incorrect ordinals on upgrade 2011-11-28 16:57:58 +09:00
Damien Elmes
478e4c9212 use the original id if available when importing 2011-11-26 12:06:17 +09:00
Damien Elmes
20c1799be5 add back the ability to show the entire collection stats 2011-11-26 10:28:42 +09:00
Damien Elmes
f7790275ce groups -> decks 2011-11-23 19:28:09 +09:00
Damien Elmes
279a942642 deck -> collection 2011-11-23 17:47:44 +09:00
Damien Elmes
6e4e8249fb facts -> notes 2011-11-23 12:37:21 +09:00
Damien Elmes
024c42fef8 group scheduling refactor
see the following for background discussion:
http://groups.google.com/group/ankisrs-users/browse_thread/thread/4db5e82f7dff74fb

- change sched index to the more efficient gid, queue, due
- drop the dynamic index support. as there's no no q/a cache anymore, it's
  cheap enough to hit the cards table directly, and we can't use the index in
  its new form.
- drop order by clauses (see todo)
- ensure there's always an active group. if users want to study all groups at
  once, they need to create a top level group. we do this because otherwise
  the 'top level group' that's active when everything is selected is not
  clear.

to do:

- new cards will appear in gid order, but the gid numbers don't reflect
  alphabetical sorting. we need to change the scheduling code so that it steps
  through each group in turn
- likewise for the learn queue
2011-09-22 11:54:01 +09:00
Damien Elmes
de8a5b69ed top level groups
As discussed on the forums, moving to a single collection requires moving some
deck-level configuration into groups so users can have different settings like
new cards/day for each top level item.

Also:
- store id in groups
- add mod time to gconf updates
- move the limiting code that's not specific to scheduling into groups.py
- store the current model id per top level group
2011-09-07 01:31:46 +09:00
Damien Elmes
9130e09b3e rename some columns for consistency
- revlog's 'time' is now 'id', like the other tables
- 'taken' is now 'time'
- also dropped the eta code
2011-09-06 21:33:19 +09:00
Damien Elmes
6a00419ebc merge deck.qconf and deck.conf 2011-08-28 14:17:33 +09:00
Damien Elmes
78600e8ed6 move group code into a registry like models 2011-08-27 23:45:55 +09:00
Damien Elmes
d3a3edb707 move models into the deck table
Like the previous change, models have been moved from a separate DB table to
an entry in the deck. We need them for many operations including reviewing,
and it's easier to keep them in memory than half on disk with a cache that
gets cleared every time we .reset(). This means they are easily serialized as
well - previously they were part Python and part JSON, which made access
confusing.

Because the data is all pulled from JSON now, the instance methods have been
moved to the model registry. Eg:
  model.addField(...) -> deck.models.addField(model, ...).

- IDs are now timestamped as with groups et al.

- The data field for plugins was also removed. Config info can be added to
  deck.conf; larger data should be stored externally.

- Upgrading needs to be updated for the new model structure.

- HexifyID() now accepts strings as well, as our IDs get converted to strings
  in the serialization process.
2011-08-27 22:27:09 +09:00
Damien Elmes
f6189f453a update card ids
- upgrade facts before cards so we don't have to rewrite the cards table twice
- ensure duplicate card creation times are accounted for
2011-08-26 22:25:20 +09:00
Damien Elmes
a4f644e780 correctly determine period when relying on first day 2011-04-29 11:36:01 +09:00
Damien Elmes
0df95eafc0 revlog updates
- use negative numbers to denote second intervals
- record the rev ivl when leaving lrn queue
- improve revlog upgrade
- don't truncate precision when recording time taken
2011-04-28 09:24:04 +09:00
Damien Elmes
497c25daa4 make it easier for callers to add extra lines 2011-04-28 09:24:04 +09:00
Damien Elmes
466c14421b tweak stats 2011-04-28 09:24:04 +09:00
Damien Elmes
7d64036a07 drop streak, make reps log all entries
reps should now be equal to the number of entries in the revlog, and only
exists so that we can order by review count in the browser efficiently

streak is no longer necessary as we have a learn queue now
2011-04-28 09:24:04 +09:00
Damien Elmes
946b54185e more humane time display 2011-04-28 09:24:04 +09:00
Damien Elmes
884405d2a6 show the latest review instead 2011-04-28 09:24:04 +09:00
Damien Elmes
5394740ea7 we don't need changed anymore, since it's usually only updated on review 2011-04-28 09:24:04 +09:00
Damien Elmes
d6258e7231 more tweaks 2011-04-28 09:24:04 +09:00
Damien Elmes
799b322e12 tweak card info layout 2011-04-28 09:24:04 +09:00
Damien Elmes
9b56c862cd use 'initial group' instead of 'fact group' 2011-04-28 09:24:04 +09:00
Damien Elmes
3af48542e4 include card & fact group in card info 2011-04-28 09:24:03 +09:00
Damien Elmes
003737c03f generate a separate cumulative plot for each revlog type 2011-04-28 09:24:03 +09:00
Damien Elmes
b422019970 compress graph; show % correct instead; ignore hours with counts < 30 2011-04-28 09:24:03 +09:00