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
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
bc896c21c9
fix unit test, add ordinals to db
2012-10-25 00:42:10 +09:00
Damien Elmes
fb06966398
fix csv test
2012-10-23 22:27:07 +09:00
Damien Elmes
eb7240d220
allow duplicates in import
2012-10-23 17:52:55 +09:00
Damien Elmes
e3da64f00b
don't clobber tags if they're not mapped
2012-09-21 15:51:45 +09:00
Damien Elmes
f2fffce6d1
handle conflicts in apkg import as well
2012-09-21 15:42:30 +09:00
Damien Elmes
f13acf8c68
handle file name conflicts in media on .anki2 import
2012-09-21 15:25:52 +09:00
Damien Elmes
b436c46b18
fix unit test
2012-09-09 06:32:03 +09:00
Damien Elmes
dd45746a41
fix unit test
2012-05-06 19:40:35 +09:00
Damien Elmes
3ab91c600b
fix unit tests
2012-04-17 22:23:44 +09:00
Damien Elmes
b413b1562a
when updating, preserve unmapped fields
2012-03-25 02:07:20 +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
972526d265
update supermemo importer; fix factor
2012-03-07 06:58:06 +09:00
Damien Elmes
869d665c22
gui integration for mnemosyne
2012-03-07 05:54:57 +09:00
Damien Elmes
1d29c7bcc0
foreign card importing; mnemosyne 2.0 importer
2012-03-07 05:45:52 +09:00
Damien Elmes
a99101d95c
initMapping(); csv tweaks
2012-02-29 13:33:55 +09:00
Damien Elmes
099ba71bb0
fix updating
2012-02-29 12:49:42 +09:00
Damien Elmes
7189e57e80
csv importing basics
2012-02-29 12:39:35 +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
cbdb283b20
refactor model copying
2011-10-31 11:34:03 +09:00
Damien Elmes
119217290e
implement anki1 importer
2011-10-21 23:45:42 +09:00
Damien Elmes
83f8ef45ff
anki2 importing and reorganize import code
2011-10-21 07:36:44 +09:00
Damien Elmes
1b9866b4e7
temporarily disable importing/exporting/sync tests
2011-04-28 09:23:28 +09:00
Damien Elmes
f828393de3
rename deck.s to a more understable deck.db; keep s for compat
2011-04-28 09:21:07 +09:00
Damien Elmes
e3dd736460
add ability to update fields when importing
2010-11-26 01:36:24 +09:00
Damien Elmes
60c76c93ff
don't backup in unit tests
2010-02-20 10:03:47 +09:00
Damien Elmes
7bc81c81bb
truncate supermemo tests to avoid any possible license concerns
2010-02-18 16:53:29 +09:00
Rick Gruber-Riemer
4971069856
Added importing for DingsBums?! decks
2009-11-08 14:39:09 +09:00
Damien Elmes
fe99ff7518
add supermemo importer from Petr Michalec
2009-07-09 23:03:23 +09:00
Damien Elmes
e62967ecb1
switch to python csv
2009-06-18 05:21:47 +09:00
Damien Elmes
95b8d655e6
remove shared cache mode, it's not needed
2009-03-18 22:45:43 +09:00
Damien Elmes
77a6488f6d
when importing, tag cards as new, add unit test
2009-02-14 03:03:42 +09:00
Damien Elmes
231b5fe9e7
only use failedcardmax with 'soon' failed card setting, fix tag unit test
2009-02-10 13:22:45 +09:00
Damien Elmes
ff4cc7b0af
add importing tag support, fix audio
2009-01-17 22:36:14 +09:00
Damien Elmes
4a22f5b6e7
fix a unit test now that back is not required/unique
2009-01-04 05:41:28 +09:00
Damien Elmes
b2d0e5d3df
wip
2008-11-07 18:44:49 +09:00
Damien Elmes
5da3a0f5d3
initial commit from hg
2008-09-27 23:50:03 +09:00