ospalh
1752652a4c
Merge branch 'master' of github.com:dae/libanki into some-fixes
2012-11-03 12:35:14 +01:00
Damien Elmes
49df458409
_startingLeft() should detect card type
2012-11-03 06:07:01 +09:00
Damien Elmes
c7547a984f
when undoing, decr sched.reps
2012-11-02 08:32:53 +09:00
Damien Elmes
d56a456319
when suspending, move cards out of (re)learning
2012-11-02 07:56:55 +09:00
Damien Elmes
44415ea97f
make sure we set card.left when lapsing a review
2012-11-02 07:22:58 +09:00
Damien Elmes
9b3364c1bb
new cards can't have due # > 32 bits
2012-11-02 07:14:25 +09:00
Damien Elmes
3ffe47f5d6
improve handling of divergent models when importing
...
- instead of maintaining a list of model versions on the model which could get
lost in a sync, we simply increment mid by one until we find a compatible
schema or empty slot
- same approach for guids, so that reimports of divergent material won't cause
extra duplicates
2012-11-02 06:34:28 +09:00
Damien Elmes
28e1cc933a
more robust deck list
...
- if we catch two decks with the same name, remove one and rebuild
- instead of trying to ensure parents which may fail if an existing deck with
a different case already exists, delete the deck that's missing parents
2012-11-01 07:05:41 +09:00
Damien Elmes
dd467cd413
account for case differences when recovering from missing parents
2012-11-01 06:36:46 +09:00
ospalh
34212ac06d
Avoid another double import
2012-10-31 17:25:03 +01:00
Damien Elmes
7dd271a99c
automatically fix missing parent decks
2012-10-31 10:34:05 +09:00
Damien Elmes
d5e43b364c
fix regression when renaming deck to child of itself
2012-10-30 21:05:25 +09:00
ospalh
bc53548355
Import urllib only once.
2012-10-30 10:42:41 +01:00
Damien Elmes
6ff5c3b2c2
make sure we don't reduce mid down to 0 on very old anki decks
2012-10-30 06:27:55 +09:00
ospalh
0443d68eea
Merge branch 'master' of github.com:dae/libanki into some-fixes
2012-10-29 09:31:43 +01:00
Damien Elmes
d3f0c84517
don't bump mod time when unburying cards from deck list
2012-10-29 04:42:42 +09:00
Damien Elmes
4011fa3084
add decimal point to reviews/day stat
2012-10-28 00:57:28 +09:00
Damien Elmes
29b0628141
revert import deck name selection
2012-10-28 00:04:36 +09:00
Damien Elmes
1403d36042
need to account for guid changes when importing cards
2012-10-27 21:59:31 +09:00
Damien Elmes
29e93f8c1d
make sure we update guid in note object too
2012-10-27 21:11:16 +09:00
Damien Elmes
bd1c6d4395
more robust anki1 upgrading & anki2 importing
...
- base the 2.0 model id on the 1.2 one so we don't get new models each time we
reimport the file
- when determining if we can reuse an existing note, it must have the same
model id, and the model must have the same schema
- make sure we check templates when determining schema
- if schema has diverged, note needs new guid
2012-10-27 20:55:08 +09:00
Damien Elmes
6830ca99d9
fix again count
2012-10-26 23:35:16 +09:00
ospalh
0426e87b5f
Don't assign an IOError to the name OSError and then never use it.
...
Instead silently fail on either an IOError or an OSError.
2012-10-26 14:05:58 +02:00
Damien Elmes
76926c953a
make sure we don't delete cloze notes in db check
2012-10-26 19:43:34 +09:00
Damien Elmes
8a06ab7bfe
break on div start, not end
2012-10-26 19:30:01 +09:00
ospalh
1e97b61bb1
Fix the non-setting of white backgrounds.
2012-10-26 12:26:57 +02:00
Damien Elmes
9c43e5928c
fix unicode error in stats
2012-10-26 16:59:18 +09:00
Damien Elmes
729862e45e
show 3 buttons for new cards
2012-10-26 14:48:01 +09:00
Damien Elmes
be722989f3
don't show custom study message on a custom study deck
2012-10-26 03:03:37 +09:00
Damien Elmes
99c238ae39
fix unit tests
2012-10-26 02:11:08 +09:00
Damien Elmes
90b0cded85
mention custom study in finished msg
2012-10-26 02:08:52 +09:00
Damien Elmes
62e69c3178
fix totalRev()
2012-10-26 02:08:28 +09:00
Damien Elmes
1196601bc0
remove dyn presets
2012-10-26 02:04:41 +09:00
Damien Elmes
ff8e75c90f
make sure we don't show negative numbers when limits extended
2012-10-25 22:45:14 +09:00
Damien Elmes
627bd1b1b3
total new/rev for deck count
2012-10-25 22:43:30 +09:00
Damien Elmes
da856552b2
forward/reverse models
2012-10-25 21:15:15 +09:00
Damien Elmes
c9b3d89d44
better message when bad latex word encountered
2012-10-25 18:48:28 +09:00
Damien Elmes
e2d0ef0cc4
add today stats
2012-10-25 18:44:24 +09:00
Damien Elmes
c9978d68b5
when upgrading decks from anki1, make sure we preserve the provided prefix
2012-10-25 16:12:24 +09:00
Damien Elmes
8823fe7538
more importing changes
...
- when importing cards from a filtered deck, convert them to normal cards
- ignore empty default deck when determining deck prefix
2012-10-25 01:02:12 +09:00
Damien Elmes
bc896c21c9
fix unit test, add ordinals to db
2012-10-25 00:42:10 +09:00
Damien Elmes
5c3f036936
add a hook to customize imported deck name
2012-10-25 00:19:50 +09:00
Damien Elmes
de541617cf
add html stripping to import; don't always display empty note msg
2012-10-24 23:48:21 +09:00
Damien Elmes
045d5d68cd
Revert "include info about whether it was a full export"
...
This reverts commit 63ec4983a4
.
2012-10-24 22:58:55 +09:00
Damien Elmes
958967f3c3
log the generated .tex for debugging, and add \n on </div>
2012-10-24 22:29:01 +09:00
Damien Elmes
63ec4983a4
include info about whether it was a full export
2012-10-24 17:53:53 +09:00
Damien Elmes
b5c72155a3
work around invalid 1.2 decks with multiple templates sharing same ord
2012-10-24 13:11:18 +09:00
Damien Elmes
7cec4762eb
revert to noteCrt if sort order invalid
2012-10-24 00:50:09 +09:00
Damien Elmes
f0a0df5a29
make sure we display review graph even if there's only a single bar
2012-10-23 23:24:13 +09:00
Damien Elmes
fb06966398
fix csv test
2012-10-23 22:27:07 +09:00