Commit graph

36 commits

Author SHA1 Message Date
Damien Elmes
ba7abb53e2 make sure we save note type after fixing ad bug 2014-09-27 10:32:21 +09:00
Houssam Salem
7b62094ea0 Add odid fix to db check (#1035) 2014-05-26 15:11:47 +10:00
Damien Elmes
d56cf3c6b0 add fix for AD issue 2014-04-01 13:13:59 +09:00
Damien Elmes
980c9d7305 Merge branch 'master' of https://github.com/hssm/anki 2014-02-21 13:38:02 +09:00
Houssam Salem
8b443e80ef Remove leech tag on undo if it was added during that review (#973). 2014-02-20 16:51:08 +11:00
Julien Baley
777a3b8ec3 Fixes behaviour for {{type:cloze:Field}} 2014-02-19 10:09:48 +00:00
Julien Baley
7e3597fb8e Adding support for chained modifiers. One can now write e.g. {{cloze:text:Field}} or {{text:cloze:Field}}, it's order independent. 2014-02-18 17:24:28 +00:00
Damien Elmes
44b83d9bd8 switch over to per-day sibling burying 2014-01-14 14:18:42 +09:00
Damien Elmes
636d70ab16 make sure we reopen log after export 2013-12-02 23:57:56 +09:00
Damien Elmes
742a520954 make sure to close debug log when closing collection 2013-12-01 01:44:47 +09:00
Damien Elmes
ae8074ec01 make sure we reset odue when rescheduling as new
if we fail to do this for a relearning card, it sticks around
until it causes problems later
2013-11-17 16:03:58 +09:00
Damien Elmes
75f87201a2 rotate log file when it hits 10MB 2013-11-13 17:00:20 +09:00
Damien Elmes
c3300f733a make sure we don't 'fix' req for cloze type 2013-11-13 16:49:49 +09:00
Damien Elmes
ef9157a8ee don't open log for export or upgrade, only regular+sync 2013-11-13 16:48:22 +09:00
Damien Elmes
d7e452de1f fix note types with missing reqs 2013-11-13 08:33:54 +09:00
Damien Elmes
5dfe95aa67 move debug logging into libanki
we want to be able to log the initial automatic sync, which
happens before the debug logging was set up in ankiqt

also skip the flush, as it should eventually get written
2013-11-04 23:04:27 +09:00
Damien Elmes
3348b091d0 tweak logging
- log only sched getCard(), not all getCard calls
- don't log sched.today unless it's changed
2013-10-30 22:42:32 +09:00
Damien Elmes
0fbc94c186 more logging tweaks
- disable in browser, note.cards()
- in getCard() we want the calling frame, not us
- log current day
- show card/note id in card info stat
2013-10-18 14:20:20 +09:00
Damien Elmes
b99533a5ad add logging to some scheduling and syncing code 2013-10-18 11:52:21 +09:00
Damien Elmes
e9ab9128c8 we can remove graves when uploading and save space 2013-10-11 12:21:59 +09:00
Damien Elmes
0bef1d8530 unbury on open/close and make sure we set usn when unburying 2013-09-04 04:38:00 +09:00
Damien Elmes
a2463eb67d unbury on open for now 2013-09-04 02:31:10 +09:00
Damien Elmes
afde11671e rework sibling handling and change bury semantics
First, burying changes:

- unburying now happens on day rollover, or when manually unburying from
  overview screen

- burying is not performed when returning to deck list, or when closing
  collection, so burying now must mark cards as modified to ensure sync
  consistent

- because they're no longer temporary to a session, make sure we exclude them
  in filtered decks in -is:suspended

Sibling spacing changes:

- core behaviour now based on automatically burying related cards when we
  answer a card

- applies to reviews, optionally to new cards, and never to cards in the
  learning queue (partly because we can't suspend/bury cards in that queue at
  the moment)

- this means spacing works consistently in filtered decks now, works on
  reviews even when user is late to review, and provides better separation of
  new cards

- if burying new cards disabled, we just discard them from the current queue.
  an option to set due=ord*space+due would be nicer, but would require
  changing a lot of code and is more appropriate for a future major version
  change. discarding from queue suffers from the same issue as the new card
  cycling in that queue rebuilds may cause cards to be shown close together,
  so the default burying behaviour is preferable

- refer to them as 'related cards' rather than 'siblings'

These changes don't require any changes to the database format, so they
should hopefully coexist with older clients without issue.
2013-08-10 15:56:26 +09:00
Damien Elmes
122c5c8f4c ensure we have access to col when removing notes while syncing 2013-05-31 10:42:24 +09:00
Damien Elmes
84a03d291d modding the schema should also set collection modified
required for the force full sync case
2013-05-28 12:42:12 +09:00
Damien Elmes
ddc01ad8e8 log deletions in text file 2013-05-22 12:27:37 +09:00
Damien Elmes
7ad33fea06 catch notes with invalid field count in db check 2013-05-14 18:12:31 +09:00
Damien Elmes
d2535fd6cb run basic integrity check prior to full up 2013-05-13 19:36:09 +09:00
Damien Elmes
cee9b2efd9 strip tags before including on card (#505) 2013-01-31 14:07:17 +09:00
Damien Elmes
ef92719eeb Revert "add automatic <br> back to field references"
This reverts commit 05a68488e7.
2013-01-16 11:28:10 +09:00
Damien Elmes
05a68488e7 add automatic <br> back to field references
{{Front}}
{{Back}}

will now automatically add a <br> to the first field reference, like previous
Anki versions did. The <br> is too complicated for users who just want a plain
template without any HTML.
2013-01-15 08:28:39 +09:00
Damien Elmes
c335ea2cee note type manager needs to ignore the default note type for current deck 2013-01-08 21:39:37 +09:00
Damien Elmes
0447cb4f41 fix issues with clozes and <% %> 2013-01-04 14:39:06 +09:00
Damien Elmes
e9b24f9f3e don't indiscriminately modSchema on db check 2012-12-28 17:23:03 +09:00
Damien Elmes
b2457811a2 optimize imports 2012-12-22 09:17:10 +09:00
Damien Elmes
d477df8c28 merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00