Damien Elmes
ad743d850d
start work on scheduling refactor
...
Previously we used getCard() to fetch a card at the time. This required a
number of indices to perform efficiently, and the indices were expensive in
terms of disk space and time required to keep them up to date. Instead we now
gather a bunch of cards at once.
- Drop checkDue()/isDue so writes are not necessary to the DB when checking
for due cards
- Due counts checked on deck load, and only updated once a day or at the end
of a session. This prevents cards from expiring during reviews, leading to
confusing undo behaviour and due counts that go up instead of down as you
review. The default will be to only expire cards once a day, which represents
a change from the way things were done previously.
- Set deck var defaults on deck load/create instead of upgrade, which should
fix upgrade issues
- The scheduling code can now have bits and pieces switched out, which should
make review early / cram etc easier to integrate
- Cards with priority <= 0 now have their type incremented by three, so we can
get access to schedulable cards with a single column.
- rebuildQueue() -> reset()
- refresh() -> refreshSession()
- Views and many of the indices on the cards table are now obsolete and will
be removed in the future. I won't remove them straight away, so as to not
break backward compatibility.
- Use bigger intervals between successive card templates, as the previous
intervals were too small to represent in doubles in some circumstances
Still to do:
- review early
- learn more
- failing mature cards where delay1 > delay0
2010-10-18 14:35:11 +09:00
Damien Elmes
1f239c1e67
direct user to help page when file not in utf-8
2010-09-02 11:45:33 +09:00
Damien Elmes
ea32bce31c
support escaped quotes in csv file, ignore bom marker
2010-08-30 20:40:28 +09:00
Damien Elmes
a68366b5c4
fix card ordering when generating cards by basing card creation off fact
2010-07-21 19:46:27 +09:00
Damien Elmes
465a890bcd
don't add = as a delim
2010-03-16 00:39:41 +09:00
Albert Peschar
ed50fb20d9
auto-detect '=' as import delimiter, strip fields
2010-03-14 11:40:31 +01:00
Damien Elmes
472b68b831
don't backup when importing / saving as
2010-02-20 10:03:39 +09:00
Damien Elmes
4769bfa7a5
another hack for w32's low timer resolution
2010-02-12 16:03:48 +09:00
Damien Elmes
c90828349c
remove obsolete reference to card tags, don't store card tags on import
2010-01-23 10:59:40 +09:00
Damien Elmes
28ff71a031
fix dingsbums tests
2010-01-23 06:42:02 +09:00
Damien Elmes
1ae05a8bc7
limit auto-detected delimiter to a known-good set
2010-01-23 06:00:06 +09:00
Damien Elmes
84b88507a2
tweak importing message
2009-11-27 19:53:24 +09:00
Damien Elmes
17630fa339
close text file after import
2009-11-27 15:27:01 +09:00
Rick Gruber-Riemer
4971069856
Added importing for DingsBums?! decks
2009-11-08 14:39:09 +09:00
Jean-Baptiste Mazon
fe19dd806d
rewrite field names as tags when importing with tagDuplicates
2009-10-31 00:35:46 +01:00
Damien Elmes
1906741e11
give a more intuitive error when trying to import utf16
2009-09-26 06:02:25 +09:00
Damien Elmes
8bc7e0c945
enforce ordinal ordering when importing
2009-08-17 05:05:50 +09:00
Damien Elmes
1006943d8e
SuperMemo import fix from Petr
...
Fix supermemo import of Q&A part in escaped html. Supermemo 2004/2006 export
can contain unescaped chars > or < that confuse beautifulsoap library. Switch
autocreation of tags from all titles to True.
2009-07-26 12:38:36 +09:00
Damien Elmes
b80fc40aee
lazy-load beautifulsoup
2009-07-10 00:37:06 +09:00
Damien Elmes
fe99ff7518
add supermemo importer from Petr Michalec
2009-07-09 23:03:23 +09:00
Damien Elmes
0011489220
improve error message when utf16 file passed in
2009-07-06 21:26:46 +09:00
Damien Elmes
0d0b9fc81e
make sure card count is properly updated in importing
2009-07-04 15:40:36 +09:00
Damien Elmes
a73e4757ad
universal newlines when importing
2009-07-02 23:23:05 +09:00
Damien Elmes
2b86cd6b33
add ability to customize separato in csv import
2009-06-26 07:13:14 +09:00
Damien Elmes
3d81181323
bulk media support -> local media copy, always send media table
2009-06-19 11:50:31 +09:00
Damien Elmes
e6b207f7af
force media sync to go in one direction
2009-06-18 06:48:41 +09:00
Damien Elmes
9cab497217
remove obsolete methods in csvfile
2009-06-18 05:52:03 +09:00
Damien Elmes
5eb1a69735
catch unicode decode errors in csv import
2009-06-18 05:37:56 +09:00
Damien Elmes
e62967ecb1
switch to python csv
2009-06-18 05:21:47 +09:00
Damien Elmes
bf59bcd1d7
remap mnemosyne latex tags
2009-06-07 02:50:09 +09:00
Damien Elmes
91afe651b3
randomize after .anki import
2009-06-04 06:59:07 +09:00
Damien Elmes
90f726e634
remove version numbers from import, as osx gets confused
2009-04-25 03:57:56 +09:00
Damien Elmes
94df742a59
fix bug with zero imports, improve speed with zero imports
2009-04-23 02:00:52 +09:00
Damien Elmes
155de15101
greatly improve import speed on large decks, randomize too
2009-04-23 01:58:40 +09:00
Damien Elmes
5a912faeab
escape tags on mnemosyne import
2009-04-13 12:40:51 +09:00
Damien Elmes
e9e5994248
make sure cards are tagged correctly when importing tags
2009-03-28 14:32:38 +09:00
Damien Elmes
95b8d655e6
remove shared cache mode, it's not needed
2009-03-18 22:45:43 +09:00
Damien Elmes
36421cf166
use pure field model order when importing
2009-02-27 15:30:11 +09:00
Damien Elmes
ebaa37fe55
update tags when importing
2009-02-20 00:11:44 +09:00
Damien Elmes
77a6488f6d
when importing, tag cards as new, add unit test
2009-02-14 03:03:42 +09:00
Damien Elmes
a4e3badf80
update importing for new tag handling
2009-02-09 21:54:19 +09:00
Damien Elmes
e50ccf22e5
canonify tags when importing
2009-01-20 02:16:15 +09:00
Damien Elmes
f5feaaa782
change wording
2009-01-17 23:00:51 +09:00
Damien Elmes
ff4cc7b0af
add importing tag support, fix audio
2009-01-17 22:36:14 +09:00
Damien Elmes
97359df499
add _ to anki10
2009-01-17 14:12:05 +09:00
Damien Elmes
334d126237
recording & noise profile support on linux
2009-01-17 01:05:39 +09:00
Damien Elmes
1fa7466dd9
progress for importing
2009-01-16 20:22:46 +09:00
Damien Elmes
39810aa3d0
make sure reps >= 0 in mnemosyne
2009-01-13 00:38:52 +09:00
Damien Elmes
ff2ca5a567
set factor based on easiness in mnemosyne import
2009-01-13 00:31:52 +09:00
Damien Elmes
91e90d8092
card model > card template
2009-01-05 06:10:10 +09:00
Damien Elmes
6a4f1d873b
munge html on import
2008-12-05 19:30:44 +09:00
Damien Elmes
1e98f8bf81
add card tags to fact
2008-11-30 05:47:36 +09:00
Damien Elmes
75a61a00cc
remove card tags
2008-11-28 14:40:27 +09:00
Damien Elmes
9b224263a9
fix mnemosyne import of due cards
2008-11-14 16:09:04 +09:00
Damien Elmes
b2d0e5d3df
wip
2008-11-07 18:44:49 +09:00
Damien Elmes
baa1bbba5f
support any file when tab separated, always use review for mnem
2008-10-28 00:12:37 +09:00
Damien Elmes
54c6220e51
ignore mnemosyne file format header
2008-10-27 19:39:39 +09:00
Damien Elmes
c0e5bed6a6
sync sources, support media syncing in import/export again
2008-10-18 20:20:43 +09:00
Damien Elmes
5da3a0f5d3
initial commit from hg
2008-09-27 23:50:03 +09:00