ospalh
1e97b61bb1
Fix the non-setting of white backgrounds.
2012-10-26 12:26:57 +02: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
b01f089ee1
don't remove empty spans
...
The regex was not matching nested spans properly, leading to invalid output on
decks like the Heisig one.
2012-09-20 16:28:08 +09:00
Damien Elmes
c371d318a2
fix ordinals instead of aborting upgrade
2012-07-19 23:57:51 +09:00
Damien Elmes
f56c2156a2
pass utf8 to sqlite but don't clobber our original format
2012-07-19 17:37:47 +09:00
Damien Elmes
9f2cf172f9
don't throw error when upgrading collection with unused models
2012-07-04 19:45:08 +09:00
Damien Elmes
4c7f7a7c4b
make sure we pass filename as utf8 to sqlite
2012-06-14 08:41:19 +09:00
Damien Elmes
c6cc874011
fix failed+suspended upgrade
2012-06-05 19:30:13 +09:00
Damien Elmes
cb24e106e6
make a distinction between cards in learning and relearing on upgrade
2012-05-22 20:58:27 +09:00
Damien Elmes
0fcf36c2a7
fix upgrade of learning cards in 1.2
...
- interval must be 1+ days
- type must be 2
2012-05-22 20:22:33 +09:00
Damien Elmes
8f89ea57f5
FrontSide on upgrade, allNames() in models
2012-05-21 14:32:43 +09:00
Damien Elmes
32fde2a072
encode daily steps in left
...
When a user has learning steps that extend past the daily cutoff, we end up
counting them all instead of only the ones that would be done today. In order
to avoid this without expensive calculations or db schema changes, we
calculate the number of steps until the daily cutoff and pack it into the left
column, as totalLeft + leftToday*1000.
2012-05-20 16:05:50 +09:00
Damien Elmes
1a80ffa8a2
shared css
2012-05-06 20:04:28 +09:00
Damien Elmes
362c213a6c
pull leech threshold on upgrade
2012-05-06 17:09:19 +09:00
Damien Elmes
461e240d53
allow python-bundled json
2012-04-28 17:41:56 +09:00
Damien Elmes
e5bf86c40e
add furigana to decks on upgrade
2012-04-07 18:28:31 +09:00
Damien Elmes
aa559431b6
on upgrade all cards of a note should share the same due #
2012-04-06 12:45:01 +09:00
Damien Elmes
47a61abebb
accidentally used mod time instead of creation time for anki1 id
2012-03-20 06:01:25 +09:00
Damien Elmes
1529c6ae5e
higher default leech threshold
2012-03-13 22:33:01 +09:00
Damien Elmes
f6b2e69669
remove did from notes, use model did instead
2012-03-09 09:12:27 +09:00
Damien Elmes
a2312f9a1f
change cards table schema
...
In preparation for cramming:
- add odid for storing old deck on a per-card basis
- rename edue to odue
- at the moment note.did still exists, but in the future we may ignore it and
use model.did instead
2012-03-08 11:28:12 +09:00
Damien Elmes
05782f9080
fix graphs
2012-02-24 22:32:00 +09:00
Damien Elmes
665fe9c280
allow upgrade of devel-version decks
2012-01-30 06:26:30 +09:00
Damien Elmes
38ec009378
same with card upgrade
2012-01-30 06:24:51 +09:00
Damien Elmes
34ba8e18f1
improve duplicate handling of note ids on upgrade
2012-01-30 06:19:49 +09:00
Damien Elmes
057b13e0af
fix due # rewriting and correctly set nextPos
2012-01-30 05:42:03 +09:00
Damien Elmes
be8bec5bc4
fix ordinal problems rather than aborting upgrade
2012-01-24 23:10:37 +09:00
Damien Elmes
87a996cdce
add flag fields for conditional templates
2012-01-23 23:57:33 +09:00
Damien Elmes
3449abe8a0
fix upgrading of decks with extra media fields
2011-12-20 12:40:18 +09:00
Damien Elmes
fca4ef7c00
strip superfluous spans from 1.2 upgrade
2011-12-18 07:23:26 +09:00
Damien Elmes
e610eeeb42
tweak template upgrading, replace repeated spaces with non-breaking ones
2011-12-17 22:01:50 +09:00
Damien Elmes
9e35e4acf2
template and cloze changes
...
While writing the documentation I realized that the default templates were
somewhat overwhelming. So I've moved the default settings into the card css,
and moved the css into a separate attribute which gets combined with the
question and answer templates.
Also:
- Detect cloze references directly rather than the conditional wrapper
- Add the cloze css to the template
2011-12-17 19:42:30 +09:00
Damien Elmes
60643b5b1f
human-readable positions for new cards
2011-12-17 08:37:05 +09:00
Damien Elmes
bacbea13e0
conf() -> confForDid(); add getConf()
2011-12-13 13:56:05 +09:00
Damien Elmes
aeb38ab65d
create a separate conf group for each imported deck
2011-12-13 04:42:12 +09:00
Damien Elmes
c1d9b62549
make sure we adjust due time on reviews when importing
2011-12-13 04:20:29 +09:00
Damien Elmes
1114fc084a
rename special field templates
2011-12-12 01:39:57 +09:00
Damien Elmes
8be0e6cccd
make sure we add + delete cards after template changes
2011-12-11 23:35:59 +09:00
Damien Elmes
4428c04774
new order is now a deck property
2011-12-10 22:45:44 +09:00
Damien Elmes
1e48ce9b99
fix randomizeCards() call
2011-12-10 04:35:29 +09:00
Damien Elmes
0ef3fe5d75
fix media unittest, turn of sync during upgrade
2011-12-07 23:23:58 +09:00
Damien Elmes
dd7434a44d
use a class instead of id to specify card styling
2011-12-07 20:04:47 +09:00
Damien Elmes
45ebbd14c8
fix revlog upgrading
2011-12-07 19:58:31 +09:00
Damien Elmes
92352d4725
convert guid to base 91 string
...
Because JSON doesn't support 64 bit numbers, we need to either convert the 64
bit numbers to a string during transport, or store the ids as a string. At
base 91 a 64 bit number only takes an extra two bytes, and it means we can
dump DB results directly into JSON without having to apply any transformation.
2011-12-03 14:25:18 +09:00
Damien Elmes
a0d910201d
don't add two typeans fields on upgrade
2011-12-02 17:37:10 +09:00
Damien Elmes
dc73ba8e47
add #answerStart to default hr so we can scroll to answer
2011-12-02 17:25:40 +09:00
Damien Elmes
56ec1c6135
fix upgrading of revlog
2011-11-29 10:34:49 +09:00
Damien Elmes
d903b50d5f
upgrade tweaks
2011-11-28 19:14:10 +09:00
Damien Elmes
bd29318168
catch incorrect ordinals on upgrade
2011-11-28 16:57:58 +09:00
Damien Elmes
cd76706a2f
make sure to remove inactive templates properly
2011-11-28 16:10:41 +09:00