Commit Graph

461 Commits

Author SHA1 Message Date
Damien Elmes
d6f9fb4ab0 fix invalid translation 2013-10-20 10:02:29 +09:00
Damien Elmes
9b27b06b68 fix retries count for unit tests 2013-10-19 12:53:18 +09:00
Damien Elmes
0a750005b9 do not bump usn/mod when automatically unburying
in the upcoming daily unburying, this could lead to a state
where the remote end unburies just at the start of sync
and clobbers more recent changes made on the local end
2013-10-19 12:22:17 +09:00
Damien Elmes
0ac8789ad5 encode to utf8 before writing log 2013-10-18 15:21:54 +09:00
Damien Elmes
313fc7c9ef more generous timeout 2013-10-18 14:22:03 +09:00
Damien Elmes
01832a9139 disable http retries
logs indicate client was retrying based on timeout and so on,
causing more problems
2013-10-18 14:21:47 +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
9b2109b85a Merge branch 'master' of github.com:dae/anki 2013-10-18 11:54:25 +09:00
Damien Elmes
b99533a5ad add logging to some scheduling and syncing code 2013-10-18 11:52:21 +09:00
Damien Elmes
9baa3e197a add option to disable burying of reviews 2013-10-18 10:38:29 +09:00
Damien Elmes
9cb1d19dc2 try to work around the qbytearray issue
https://anki.tenderapp.com/discussions/ankidesktop/3369-bug-report-for-restoring-from-backup
2013-10-18 07:53:53 +09:00
Damien Elmes
da1672d42f don't rename/unlink files for non-local check 2013-10-17 17:59:26 +09:00
Damien Elmes
6368a0ab18 Merge pull request #44 from sobjornstad/master
Don't display "If you studied every day" in stats if you studied every day
2013-10-16 03:26:24 -07:00
Damien Elmes
686c0077ea bump version 2013-10-16 12:11:39 +09:00
Damien Elmes
6be7503543 normalize to nfc when sending media in sync 2013-10-16 08:37:34 +09:00
Damien Elmes
5bf0a31c51 catch 413 error and don't trigger on file line numbers
fixes spurious proxy auth required msg
2013-10-14 11:18:52 +09:00
Damien Elmes
e9ab9128c8 we can remove graves when uploading and save space 2013-10-11 12:21:59 +09:00
Soren I. Bjornstad
6c07a58c2a display "if you studied every day" only when appropriate
(If you in fact did study every day during the period shown, it looks
silly.)
2013-10-10 10:42:58 -05:00
Damien Elmes
8d7edcb2bb include a session key when syncing 2013-10-10 22:59:34 +09:00
Damien Elmes
2f3f285528 clarify 409 msg 2013-10-10 11:48:38 +09:00
Damien Elmes
b42c0c725b Revert "tolerate a str arg to writeData()"
This reverts commit 2d4e88afbd.

On second thought, this change is likely to mask the error in most cases, and
we want add-on authors to update their add-ons anyway as they would not be
handling non-latin text in 2.0.12.
2013-10-10 11:08:39 +09:00
Damien Elmes
2d4e88afbd tolerate a str arg to writeData() 2013-10-09 13:13:48 +09:00
Damien Elmes
d503b62cd1 fix display of non-latin tags 2013-10-08 07:42:06 +09:00
Damien Elmes
bc96a00fd2 we need to clear out std models on export or we end up renaming
and the rename affects the exporting deck as well
2013-10-06 09:45:38 +09:00
Damien Elmes
7aee582a58 loop should exit early, and allNames() doesn't need modification 2013-10-06 09:26:43 +09:00
Damien Elmes
6c304ebe2f to normalize unicode we need to have unicode 2013-10-06 04:53:11 +09:00
Damien Elmes
3ed2861115 include platform in cv 2013-10-06 04:37:39 +09:00
Damien Elmes
e3a102ef92 bump version 2013-10-05 23:53:27 +09:00
Damien Elmes
f1837e7e0a when ensuring model unique, check id not obj
this should fix an issue where we were attaching a suffix to non-duplicate
names on sync
2013-10-05 23:53:09 +09:00
Damien Elmes
f23392b6a3 Merge pull request #35 from hssm/compile-regex
Pre-compile HTML-stripping regexes.
2013-10-04 13:39:44 -07:00
Damien Elmes
9524dbed96 give note types unique name when adding/importing (#325) 2013-10-04 09:00:08 +09:00
Damien Elmes
174914b7dc scroll to newly added column in browser (#978) 2013-10-04 08:43:46 +09:00
Damien Elmes
0f7000db83 refactor second instance detection
- get rid of shared memory check as it was causing problems when an existing
  session was forcefully closed; instead we rely on the socket
- include a hash of the user's name in the key so that multiple users can run
  anki at the same time
2013-10-04 07:37:19 +09:00
Damien Elmes
f64c07ca40 show sync username in prefs screen 2013-10-04 06:09:36 +09:00
Damien Elmes
f29a04ae29 bump sync ver to 7 and change meta return value
- /sync/meta now returns a dictionary
- it includes the following extra fields
- msg: if non-empty, show this message at the end of the sync
- cont: if false, show above message and abort sync
- uname: the user's email address, so it can be stored by the local client to
  show users who have forgotten which email address they used. in the future
  this will be saved only when logging in, so do a conditional access on it
2013-10-04 06:09:28 +09:00
Damien Elmes
b55761190f option to tag notes in find dupes function 2013-10-04 00:07:11 +09:00
Damien Elmes
33403fd890 include client type in cv 2013-10-02 04:09:16 +09:00
Damien Elmes
ec3850aab2 note rollover problem in unit tests 2013-10-02 04:04:06 +09:00
Damien Elmes
621ba0e1ac include client version in /sync/meta 2013-10-02 03:53:10 +09:00
Damien Elmes
7725a93d24 don't say tomorrow for burying until we introduce the new change 2013-10-02 03:50:59 +09:00
Damien Elmes
3d33436a86 move version number into libanki 2013-10-02 03:50:19 +09:00
Damien Elmes
318b4e371f bump sync ver to 6 (see note)
when porting this to other platforms, please ensure you have ported all
changes in sched.py after 2.0.12 first
2013-09-27 17:14:23 +09:00
Damien Elmes
8277233827 remove invalid line 2013-09-27 17:13:26 +09:00
Damien Elmes
79ed57a445 reschedule should not operate on filtered/suspended/buried
this should fix some issues with rescheduled cards ending up in an invalid
state
2013-09-27 13:30:39 +09:00
Damien Elmes
d36655a8c7 use unicode when recording 2013-09-23 15:13:46 +09:00
Damien Elmes
d348179ad4 add internal option to disable burying on answer 2013-09-20 19:39:19 +09:00
Damien Elmes
0d1d8c5bf9 define standard encoding for unicode (#893)
- always store media references in fields in NFC form
- always encode filenames on disk in NFC form on machines other than macs
- use relevant encoding when placing files in the media folder during syncs
  and apkg imports as well
- rename 'unused media' back to 'check media'
- check media can now automatically change media references and filename
  encodings to the correct format
2013-09-20 19:28:44 +09:00
Damien Elmes
4d42282b7b strip html in duplicate check (#906) 2013-09-20 17:25:24 +09:00
Damien Elmes
e7be6fd4be make sure we decode full traceback on addon err (#954) 2013-09-20 15:02:46 +09:00
Damien Elmes
fe3ce87020 make sure we escape html chars after type ans comp. (#960) 2013-09-20 14:57:05 +09:00