Commit graph

2244 commits

Author SHA1 Message Date
Damien Elmes
b6bdd4aa21 daily learning queue
The way we were handling 1 day+ learning intervals was not great - they'd show
up at the start of a new day before normal reviews, meaning the hardest cards
came first. In previous Anki versions we deliberately sorted the queue in the
opposite order to prevent that. When relearning the cards the next day, if you
failed a card and expected to see it in 10 minutes that wouldn't happen
either, as all the overdue cards took precedence.

To fix this, we put cards that are due tomorrow or later into a separate queue
(queue 3), and pull cards from that queue only after the reviews are done. In
the future it might also be nice to move overdue learning cards into that
queue automatically at the start of a session.
2012-05-20 16:56:14 +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
33407a6043 if the next step of the learn card is past the day cutoff, ignore left 2012-05-20 12:01:52 +09:00
Damien Elmes
a15b210349 be tolerant of bad upgrade 2012-05-19 08:23:11 +09:00
Damien Elmes
26f3ab7b9f due sort should sort by type first 2012-05-18 12:02:00 +09:00
Damien Elmes
e88bb29adf fix off by one in x axis 2012-05-18 12:01:04 +09:00
Damien Elmes
9aedb4a5e0 don't allow empty files in media folder 2012-05-16 05:35:58 +09:00
Damien Elmes
54bcdf6f21 odid was in the wrong place 2012-05-14 11:54:48 +09:00
Damien Elmes
3cda67ad68 defer i18n resolution so names can be translated 2012-05-14 07:11:58 +09:00
Damien Elmes
5c56de0e73 import deck conf 2012-05-14 07:05:18 +09:00
Damien Elmes
e10e4aed1d fix due check, remove obsolote unit test 2012-05-14 06:55:32 +09:00
Damien Elmes
b8ceef1b4a obsolete code in tags.py 2012-05-14 06:27:37 +09:00
Damien Elmes
ca7662ba72 deck percentage -> percentage 2012-05-14 06:24:11 +09:00
Damien Elmes
b291b9f2c0 show original deck name if in cram deck 2012-05-14 06:22:04 +09:00
Damien Elmes
1394b80152 catch attempt to set invalid due date on cards 2012-05-14 05:48:20 +09:00
Damien Elmes
072e93590b don't bump mod time when expired failed cards 2012-05-14 05:44:48 +09:00
Damien Elmes
d47b0726b0 limit y axis to integer ticks 2012-05-14 05:12:59 +09:00
Damien Elmes
f739d7ac38 ignore crom decks in didsForConf() 2012-05-14 03:17:11 +09:00
Damien Elmes
6096d39748 revert to default did if invalid in _newCard() 2012-05-14 03:02:19 +09:00
Damien Elmes
32bb469c63 proactively remove empty dids 2012-05-13 08:32:48 +09:00
Damien Elmes
b2580a9a15 fix odue issue 2012-05-08 02:11:40 +09:00
Damien Elmes
50f1091e28 catch attempt to retrieve conf from invalid deck 2012-05-08 01:39:19 +09:00
Damien Elmes
4b061e8f46 don't hard error on queue/odue issue 2012-05-08 01:30:37 +09:00
Damien Elmes
1a80ffa8a2 shared css 2012-05-06 20:04:28 +09:00
Damien Elmes
2cfa80b75b fix export of deck children when limiting to deck 2012-05-06 19:28:44 +09:00
Damien Elmes
eef669896d don't fail when trying to export cram deck 2012-05-06 19:26:05 +09:00
Damien Elmes
50464b514a add card.isEmpty() 2012-05-06 19:21:38 +09:00
Damien Elmes
aedf88ee6d don't allow {{c0:: 2012-05-06 18:08:15 +09:00
Damien Elmes
c1ea82273b log actual changes, not all prospectives 2012-05-06 17:53:18 +09:00
Damien Elmes
a52e740ef6 log added and updated notes separately 2012-05-06 17:34:04 +09:00
Damien Elmes
a558c47330 fix duplicate check in import 2012-05-06 17:29:02 +09:00
Damien Elmes
362c213a6c pull leech threshold on upgrade 2012-05-06 17:09:19 +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
e3a848b5b8 tally lrn separately so we don't limit it with the rev limit 2012-05-06 02:20:25 +09:00
Damien Elmes
6f90e2c445 don't generate cards into invalid decks 2012-05-06 02:00:33 +09:00
Damien Elmes
0e2637a999 when cram deck removed, cards in learning need to be reset 2012-05-06 01:55:18 +09:00
Damien Elmes
c2370fe3ef fix bug where nondue review cards in cram were treated as due 2012-05-06 01:44:10 +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
623dff8df0 allow for more cards in a cram deck 2012-05-05 23:52:47 +09:00
Damien Elmes
58257cb5c4 add deck:none 2012-05-05 23:34:11 +09:00
Damien Elmes
74773d8e8a canonicalize deck name prior to rename 2012-05-05 18:22:54 +09:00
Damien Elmes
47e8e3d718 must set odue to zero when removing failed 2012-05-05 01:28:47 +09:00
Damien Elmes
d359a600d9 adjust properties directly on leech 2012-05-05 01:20:18 +09:00
Damien Elmes
b9761ca109 fix tags cards being added to all notes 2012-05-05 01:15:58 +09:00
Damien Elmes
2df2231dc5 catch attempts to write queue=2 odue>0 2012-05-05 01:09:11 +09:00
Damien Elmes
0faad28715 fix negation of normal searches 2012-05-05 00:28:14 +09:00
Damien Elmes
13cabe3983 if tmpdir existed don't remove and recreate 2012-05-05 00:13:35 +09:00
Damien Elmes
2433da7ef5 Merge branch 'master' of github.com:dae/libanki 2012-05-04 22:55:04 +09:00
Damien Elmes
54e3436746 add byName9() to decks 2012-05-04 22:54:51 +09:00
ospalh
311897a393 match the whole {{xx:yy]] field so we can delete it 2012-05-04 12:13:47 +02:00
Damien Elmes
3173073cff make sure to escape fields when renaming
thanks to ospalh for the heads up
2012-05-01 15:33:54 +09:00
Damien Elmes
3a401ce4ac bundle pyaudio, beautifulsoup and httplib2 2012-04-28 19:02:04 +09:00
Damien Elmes
581830840c we require python2.6 now 2012-04-28 17:47:41 +09:00
Damien Elmes
461e240d53 allow python-bundled json 2012-04-28 17:41:56 +09:00
Damien Elmes
491596096a fix inverted cmp in leech handler 2012-04-28 16:29:59 +09:00
Damien Elmes
f6b620f9ed ensure period is always 1+ 2012-04-27 10:51:13 +09:00
Damien Elmes
89eea5f964 clearer message when mplayer missing 2012-04-26 15:01:32 +09:00
Damien Elmes
12a80ef9c2 handle cloze note types in changeModel() 2012-04-25 13:25:19 +09:00
Damien Elmes
58aebc5b55 genCards() on findReplace() 2012-04-25 13:24:54 +09:00
Damien Elmes
5f7c80a2cd add c<n> for conditional generation of specific clozes 2012-04-25 11:11:21 +09:00
Damien Elmes
b3ff6044c8 add replayBoth to conf 2012-04-24 16:33:02 +09:00
Damien Elmes
53c455ff1f fix sound file return when not encoding 2012-04-24 15:52:10 +09:00
Damien Elmes
5b97c3f20f don't throw error when update causes empty cards; fix unit test 2012-04-24 10:03:34 +09:00
Damien Elmes
7070b159d5 don't allow ? " or | in media filenames either 2012-04-24 09:16:34 +09:00
Damien Elmes
d401f92016 add new tag hook 2012-04-24 09:12:07 +09:00
Damien Elmes
fe029250d9 forward -> card 1 2012-04-24 06:59:37 +09:00
Damien Elmes
b5ad2eb880 clear overdue in deck browser too 2012-04-24 05:38:18 +09:00
Damien Elmes
b2bc97ee49 clear overdue lapsed cards from learning queue 2012-04-24 05:28:19 +09:00
Damien Elmes
eba931a7da check invalid filenames 2012-04-24 05:28:06 +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
5514b75d6b fix card:<n> and card:cloze in cloze types 2012-04-24 02:30:02 +09:00
Damien Elmes
92472045d7 fix importing of changed models and duplicate revlog/card entries 2012-04-24 01:27:36 +09:00
Damien Elmes
dd4e85edfd automatically .reset() if attempting to getCard() from fresh deck 2012-04-23 04:16:51 +09:00
Damien Elmes
07ce818f18 add to current deck option 2012-04-23 04:16:36 +09:00
Damien Elmes
aee8d2a35f i18n basic model tmpl 2012-04-23 00:37:06 +09:00
Damien Elmes
bf13492c3c fix dynIvlBoost() thanks to itraveller 2012-04-23 00:24:20 +09:00
Damien Elmes
f2e183f729 check day when checking due counts 2012-04-22 09:26:08 +09:00
Damien Elmes
3c6707c17f don't genCards() into a cram deck 2012-04-22 08:27:31 +09:00
Damien Elmes
62b44df78e when renaming a field, support cloze: as well 2012-04-22 08:01:17 +09:00
Damien Elmes
68da292ddb copy2->copyfile
copy2() will throw an OSError on Linux+fat32 partitions, and we don't really
need the original mode bits or stat data anyway.
2012-04-22 07:33:04 +09:00
Damien Elmes
ae3e775fdd upgrade decks to fix odue bug 2012-04-22 07:17:06 +09:00
Damien Elmes
fd30167c49 nameOrNone() 2012-04-22 07:12:32 +09:00
Damien Elmes
c415c437de check bs version 2012-04-22 04:51:09 +09:00
Damien Elmes
cdffab235c add option to dump db args 2012-04-21 08:57:08 +09:00
Damien Elmes
f16335ee7f use a smaller range for random numbers
Using 2**32 is the technically superior solution, since it minimizes the chance of multiple notes sharing a due # (which has implicates for sibiling spacing), but the large numbers are confusing to users.
2012-04-21 08:56:56 +09:00
Damien Elmes
b4cf7e39b5 i18n empty cards msg 2012-04-21 07:25:41 +09:00
Damien Elmes
9fab2834da cloze generation needs to use provided fields, not field 0 2012-04-21 07:25:35 +09:00
Damien Elmes
7c51a7bb16 update sort field when field moved 2012-04-21 06:40:20 +09:00
Damien Elmes
c2df347909 catch attempt to delete last template 2012-04-20 22:37:31 +09:00
Damien Elmes
4b3e1f0d2b accept a string did in remDyn() 2012-04-20 02:19:00 +09:00
Damien Elmes
625a77f7f8 strip \n in csv tags: 2012-04-20 02:17:44 +09:00
Damien Elmes
a3407020cb split empty card removal into separate report 2012-04-19 11:14:57 +09:00
Damien Elmes
fe0e227325 don't upgrade clozes while iterating 2012-04-19 09:58:12 +09:00
Damien Elmes
5cbe93b63d more cloze work
- upgrade old decks
- specify the field in the cloze, so the user can have an id in the first
  field
2012-04-19 08:32:19 +09:00
Damien Elmes
41fa9a9896 cloze refactor wip 2012-04-19 07:14:03 +09:00
Damien Elmes
20ecd7359d when resetting lrn reps, need to choose between lrn/lapse 2012-04-19 05:53:24 +09:00
Damien Elmes
f963a31d9c must set factor when cards are rescheduled as a review 2012-04-19 04:40:43 +09:00
Damien Elmes
336b1e7c58 fix bugs with daily counts
- When we reset() the deck, we need to update the daily counts for all decks,
  not just the selected ones, or the deck list is inaccurate
- We don't want to save the decks at that time, or simply opening Anki on
  another machine will cause a conflict with all decks
2012-04-19 02:45:46 +09:00
Damien Elmes
609e165c95 use deck of existing cards if all use same deck 2012-04-18 05:24:02 +09:00
Damien Elmes
c0b1fb9c5f allow "a:" to be translated to "a :" in French 2012-04-18 04:21:58 +09:00
Damien Elmes
cbdd152f36 factor langDir into separate func 2012-04-18 03:19:47 +09:00
Damien Elmes
a0578f73d1 add option to revert to default deck 2012-04-18 02:03:57 +09:00
Damien Elmes
35f89bfea7 collapse relearning to 2 buttons if single step 2012-04-18 01:59:51 +09:00
Damien Elmes
44d62d6a41 fix remEmptyCards filter arg order 2012-04-18 01:59:38 +09:00
Damien Elmes
55812bef86 remove cards from cram decks and the relearning queue on suspend 2012-04-17 22:53:48 +09:00
Damien Elmes
1b6cf2bef8 when a card is in an invalid deck, report that in its name 2012-04-17 22:22:04 +09:00
Damien Elmes
2ad98f063a ignore cram decks when deleting options groups 2012-04-17 20:37:17 +09:00
Damien Elmes
d429519929 return check db status 2012-04-17 20:16:41 +09:00
Damien Elmes
fbefb8a906 remove is:recent 2012-04-17 18:31:46 +09:00
Damien Elmes
2149502a77 fix translation of queue order labels 2012-04-17 17:53:02 +09:00
Damien Elmes
29cb76de8f add check for broken review due #s 2012-04-12 17:30:14 +09:00
Damien Elmes
0da5b36d20 default to a single 10 minute delay for lapses 2012-04-12 01:01:47 +09:00
Damien Elmes
5ac1ec2067 when shifting cards on reschedule, only shift new cards 2012-04-12 00:37:22 +09:00
Damien Elmes
4f8053b165 make sure to export deck creation date on apkg export 2012-04-12 00:34:40 +09:00
Damien Elmes
875a417346 fix exporting of models into apkg 2012-04-12 00:15:56 +09:00
Damien Elmes
2f2a483a49 when queue cleared, force current audio to stop 2012-04-11 20:17:56 +09:00
Damien Elmes
dd9d9f4223 update position on integrity check 2012-04-11 18:10:49 +09:00
Damien Elmes
8a6e9945b2 use human-readable # when generating new cards 2012-04-11 18:09:13 +09:00
Damien Elmes
1077c71c2e don't throw error in half-complete field filter 2012-04-08 21:39:04 +09:00
Damien Elmes
71645aacb5 fix field deletion issues thanks to illforyou 2012-04-08 20:18:46 +09:00
Damien Elmes
74700ff4f5 add browser selection js 2012-04-08 13:27:03 +09:00
Damien Elmes
ad661add7c ignore sound: tags when rendering furigana 2012-04-08 09:27:50 +09:00
Damien Elmes
fdb69b2ca9 fix c.q(reload=True) 2012-04-08 09:27:00 +09:00
Damien Elmes
cb1e4d4645 check for missing parents on sync 2012-04-08 09:06:33 +09:00
Damien Elmes
6e8f2f5993 when creating child decks, inherit case from parents 2012-04-08 08:45:36 +09:00
Damien Elmes
e5bf86c40e add furigana to decks on upgrade 2012-04-07 18:28:31 +09:00
Damien Elmes
5d3e31ca5d integrate furigana field modifiers 2012-04-07 17:31:19 +09:00
Damien Elmes
bbac32b477 ensure lapsed reviews are scheduled for tomorrow on graduate 2012-04-07 14:28:41 +09:00
Damien Elmes
2f75e99671 ntype -> note 2012-04-07 13:53:55 +09:00
Damien Elmes
2ba5f80cf1 fix field searching and negated field searching 2012-04-07 13:53:03 +09:00
Damien Elmes
e3f64c0f07 if there's no LastRepetition element, don't try import learning data 2012-04-06 19:38:32 +09:00
Damien Elmes
6e7ea8e25b fix apkg exporting 2012-04-06 19:28:36 +09:00
Damien Elmes
37b89cdac3 fix importing non-latin tags 2012-04-06 19:01:05 +09:00
Damien Elmes
c1242740ac fix importing of multiline fields 2012-04-06 18:13:21 +09:00
Damien Elmes
13049339ac add check for first field 2012-04-06 13:35:46 +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
5c59f6a558 fix illegal check thanks to kostas 2012-04-05 03:50:03 +09:00
Damien Elmes
7553573304 fix earlier cram fix 2012-03-30 02:42:54 +09:00
Damien Elmes
73bdad9d70 model:foo is ntype:foo in searches now 2012-03-30 00:03:39 +09:00
Damien Elmes
07c3297a9a don't include suspended cards in cram 2012-03-30 00:03:30 +09:00
Damien Elmes
0317e63cfb remove init docstring; documented in addons.html now 2012-03-28 06:55:23 +09:00
Damien Elmes
245be4c166 obsolete col attrs 2012-03-28 06:40:15 +09:00
Damien Elmes
f7fe1c6590 fix tag:none 2012-03-27 11:18:16 +09:00
Damien Elmes
d8ec8d0389 another rev scheduling bug 2012-03-27 09:15:39 +09:00
Damien Elmes
c62dd41f77 bug in rev scheduling 2012-03-27 05:22:47 +09:00
Damien Elmes
b413b1562a when updating, preserve unmapped fields 2012-03-25 02:07:20 +09:00
Damien Elmes
5dc69ecd47 when reconnecting media, update cwd 2012-03-25 01:44:52 +09:00
Damien Elmes
83f49246e3 fix due date in card stats 2012-03-25 00:44:23 +09:00
Damien Elmes
cebcce4a34 race condition in sound code 2012-03-25 00:32:59 +09:00
Damien Elmes
7d3698e2c7 don't play audio files more than once 2012-03-24 23:58:37 +09:00
Damien Elmes
eb8326c605 failure mult should only be applied to reviews 2012-03-24 23:58:24 +09:00
Damien Elmes
4b77d1a08d separate max timer and show timer options 2012-03-24 19:56:05 +09:00
Damien Elmes
ccb0c08c9c another find&replace bug 2012-03-24 19:03:14 +09:00
Damien Elmes
ce86670c76 find&replace should ignore notes without provided field 2012-03-24 04:06:51 +09:00
Damien Elmes
933bee43a0 use the first hint occurrence for any subsequent clozes 2012-03-22 15:51:36 +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
8fd1756eb4 remove deck overriding in text file import 2012-03-20 05:43:55 +09:00
Damien Elmes
e41c7738d3 Revert "make importing with an explicit deck work again"
This reverts commit f177083bcb.
2012-03-20 05:42:17 +09:00
Damien Elmes
f177083bcb make importing with an explicit deck work again
This change was necessary as we moved away from note decks. However, now that
I think about it, decks may not be a terribly useful thing to specify
per-line in a text file. Committing in case the code is needed later, but I
will revert in the next commit.
2012-03-20 05:41:58 +09:00
Damien Elmes
f57f386b59 add deck and tags as default extra fields 2012-03-20 04:53:00 +09:00
Damien Elmes
f1140cf886 fix inverted deck search case 2012-03-20 02:49:06 +09:00
Damien Elmes
51b70a5787 genCards() on model change 2012-03-20 02:46:45 +09:00
Damien Elmes
5c5341b5e5 make sure we don't modify the active decks during scheduling 2012-03-20 00:37:39 +09:00
Damien Elmes
e9a87b9fd9 apply failure multiplier in cram mode 2012-03-20 00:03:52 +09:00
Damien Elmes
7c712274d8 deck: searches should find it both original and current deck 2012-03-19 22:53:40 +09:00
Damien Elmes
820308e45e fix args in addSearchFieldToken 2012-03-19 21:50:09 +09:00
Damien Elmes
28b396895a must make sure to save odid on sched flush 2012-03-19 20:35:25 +09:00
Damien Elmes
f4151d5d83 fix disabling of answer timer 2012-03-16 20:13:25 +09:00
Damien Elmes
62117453ff timeboxing 2012-03-16 19:56:10 +09:00
Damien Elmes
4c369ba6af make sure daysLate() works with review cards in a cram deck 2012-03-16 19:08:13 +09:00
Damien Elmes
b5cafd370f ignore thumbs.db in media sync 2012-03-16 17:11:13 +09:00
Damien Elmes
ef386d8698 anki.cram no longer exists 2012-03-14 00:26:10 +09:00
Damien Elmes
b35b105750 don't clobber decks on upgrade 2012-03-13 23:18:45 +09:00
Damien Elmes
1529c6ae5e higher default leech threshold 2012-03-13 22:33:01 +09:00
Damien Elmes
17891edb72 card rescheduling needs to bump mod time and usn 2012-03-13 22:28:25 +09:00
Damien Elmes
056e146696 revCardOrderLabels is obsolete 2012-03-13 22:22:06 +09:00
Damien Elmes
f73cbcef51 check httplib2 version 2012-03-13 22:15:44 +09:00
Damien Elmes
1f95045621 store media folder as unicode so we can log updated files in unicode 2012-03-13 22:12:21 +09:00
Damien Elmes
0843db03fd when graphing deck life, period = first day 2012-03-13 22:02:46 +09:00
Damien Elmes
acd0316a14 more cram orderings, clear out before rebuild 2012-03-13 21:40:31 +09:00
Damien Elmes
81f2a5318f show lapses in card stats 2012-03-13 21:31:30 +09:00
Damien Elmes
dc85212bfe remove review order options
As cram decks provide a more efficient way of ordering reviews, we can limit
normal reviews to just due order.
2012-03-13 19:25:28 +09:00
Damien Elmes
81c07158e9 make sure reviews are due when cramming 2012-03-13 19:16:39 +09:00
Damien Elmes
60dd0b426c store order as an index 2012-03-13 18:12:06 +09:00
Damien Elmes
d5dbfa3243 new/rev limits in tree shouldn't be applied for dyn decks 2012-03-12 23:27:12 +09:00
Damien Elmes
5019e46fbf display due cards in review mode by default 2012-03-12 15:51:03 +09:00
Damien Elmes
f4acae6c1c add shift paramater in case we make card resched. in cram optional 2012-03-12 15:49:10 +09:00
Damien Elmes
09ca65624a select the dyn deck as it's created 2012-03-12 14:56:06 +09:00
Damien Elmes
d8a9a5ea1f card.timeLimit() 2012-03-12 14:04:22 +09:00
Damien Elmes
b9cc9bf0b2 deck upgrade 2012-03-12 13:49:32 +09:00
Damien Elmes
f4e962aa58 make sure we move reviews back to original deck 2012-03-12 12:33:46 +09:00
Damien Elmes
324861a946 or on bury 2012-03-12 12:17:57 +09:00
Damien Elmes
ea64e4da1b don't need to removeFailed() when suspending 2012-03-12 12:16:37 +09:00
Damien Elmes
dc589a5c15 rescheduling ignores dynamic decks 2012-03-12 12:08:46 +09:00
Damien Elmes
8030b2c969 use type not queue for rev sib. spacing, fix cram case 2012-03-11 14:52:12 +09:00
Damien Elmes
4a12ec62c1 log cram reps separately; fix std rev reps 2012-03-11 14:06:59 +09:00
Damien Elmes
da07e15a87 generalize into 'dynamic decks'
- search and limits are embedded in the deck
- decks can be refreshed
- they have the option to treat due reviews normally rather than cram them
- some options are inherited from the original deck, others taken from the
  dynamic deck
2012-03-10 19:41:37 +09:00
Damien Elmes
f6b2e69669 remove did from notes, use model did instead 2012-03-09 09:12:27 +09:00
Damien Elmes
ffaf7ffc66 removing cram decks, estimates, failure handling 2012-03-09 06:56:07 +09:00
Damien Elmes
01404fafaa start of cram refactor 2012-03-08 16:47:22 +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
528224895c make sure we bump usn of revlog import 2012-03-08 08:32:24 +09:00
Damien Elmes
88b2b3ab85 we must bump usn when importing anki1 dconf 2012-03-08 08:25:05 +09:00
Damien Elmes
c92ab5dd19 allow due to be negative so we can reflect overdue cards 2012-03-07 07:11:30 +09:00
Damien Elmes
d1e04b908d log total imported 2012-03-07 07:08:02 +09:00
Damien Elmes
972526d265 update supermemo importer; fix factor 2012-03-07 06:58:06 +09:00
Damien Elmes
beef571d95 include _, remove some old unittest support files 2012-03-07 06:10:18 +09:00
Damien Elmes
e175dcd2d8 log total notes imported 2012-03-07 06:02:16 +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
66534db987 make the cloze hint a prefix 2012-03-07 03:27:04 +09:00
Damien Elmes
d60a3f8e25 ensure nextPos is not null 2012-03-06 16:21:51 +09:00
Damien Elmes
a99101d95c initMapping(); csv tweaks 2012-02-29 13:33:55 +09:00
Damien Elmes
44dea8211e don't strip leading whitespace 2012-02-29 12:51:00 +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
54b8ee059f media importing 2012-02-26 08:13:48 +09:00
Damien Elmes
d7c58f8142 start of packaged deck importing 2012-02-26 06:49:38 +09:00
Damien Elmes
620f16c876 fix forgetCards() bug 2012-02-26 04:30:56 +09:00
Damien Elmes
afbe1a4a64 export card count, remove temp files, check media exists 2012-02-26 03:52:31 +09:00
Damien Elmes
e8aea4d713 fix exporters(), tags need stripping 2012-02-26 03:10:04 +09:00
Damien Elmes
cd5dfa2116 deck and packaged deck export 2012-02-26 01:45:39 +09:00
Damien Elmes
8539c081b3 start porting export code 2012-02-25 22:10:57 +09:00
Damien Elmes
2859f9c39d add children argument to decks.cids() 2012-02-25 22:10:42 +09:00
Damien Elmes
05782f9080 fix graphs 2012-02-24 22:32:00 +09:00
Damien Elmes
3823151d6f make sure changes during upgrade don't have side effects 2012-02-24 22:29:04 +09:00
Damien Elmes
3d94e9a386 split jquery libraries up 2012-02-24 20:55:03 +09:00
Damien Elmes
056dd4d68e remove some dead code thanks to richard 2012-02-24 20:40:17 +09:00
Damien Elmes
d06dccad32 deck list counts should be reps not cards, to match study screen 2012-02-14 12:27:17 +09:00
Damien Elmes
f6f6649062 return the restored card when undoing a review 2012-02-13 12:51:15 +09:00
Damien Elmes
030e5498b3 "this deck" 2012-02-13 12:31:35 +09:00
Damien Elmes
bde4420fb0 don't throw an error on unclosed conditional tags 2012-02-13 12:26:07 +09:00
Damien Elmes
abf6e3fa13 don't fall over if cwd doesn't exist 2012-02-13 12:16:52 +09:00
Damien Elmes
b89dde97a8 fix deck syncing problems
- delete only the decks with graves, not any children
- make sure we log the deletion even if the deck didn't exist
2012-02-02 09:52:07 +09:00
Damien Elmes
f9ed0d657c remove notes field from cloze 2012-01-30 07:45:52 +09:00
Damien Elmes
1800f30776 correctly detect when we don't have a deck conf 2012-01-30 07:31:15 +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
3dc9454cd7 revert to the previous cwd rather than assuming a particular path layout 2012-01-30 05:32:18 +09:00
Damien Elmes
63b5e862b3 Merge branch 'master' of https://github.com/tarix/libanki 2012-01-30 05:28:01 +09:00
mikem
f3847daae4 fix for FileIO exception when deleting a profile from windows 2012-01-29 19:15:12 +09:00
Damien Elmes
3c995017fe force save after sync 2012-01-26 08:07:27 +09:00
Damien Elmes
58935afba7 when undoing, update daily limits 2012-01-24 23:38:58 +09:00
Damien Elmes
be8bec5bc4 fix ordinal problems rather than aborting upgrade 2012-01-24 23:10:37 +09:00
Damien Elmes
92ee7597a9 make sure we zero the queue when clearing it 2012-01-24 22:59:52 +09:00
Damien Elmes
302541e0c0 fix some audio issues
- add a pause between feeding mplayer multiple files, as it loses some of them
  otherwise
- in order to do the above, we use mplayerEvt only as a flag and don't make
  the main thread wait anymore
- use a different temporary name for each audio file on windows so we can
  queue up multiple files at a time
2012-01-24 22:57:39 +09:00