Damien Elmes
9bcfc9e1d4
use devnull instead of reader thread; fix cleanup code
...
thanks to robert siemer for the devnull idea
2011-12-11 03:34:51 +09:00
Damien Elmes
0a279f6a26
remove clozectx, add styling to stdmodels
2011-12-11 02:33:27 +09:00
Damien Elmes
918bfa2e62
move some prefs into collection
2011-12-10 23:48:36 +09:00
Damien Elmes
4428c04774
new order is now a deck property
2011-12-10 22:45:44 +09:00
Damien Elmes
1e48ce9b99
fix randomizeCards() call
2011-12-10 04:35:29 +09:00
Damien Elmes
45c218f807
add restore to default option
2011-12-10 04:17:53 +09:00
Damien Elmes
78494283c2
store forgetting index as %, fix card sorting
2011-12-10 04:11:43 +09:00
Damien Elmes
0161ebd9f1
fix rev order and add placeholder in ints[]
2011-12-10 01:07:39 +09:00
Damien Elmes
46443762c0
add the ability to create a new deck conf from existing one
2011-12-10 00:47:04 +09:00
Damien Elmes
20ffbd57a7
don't need relearn flag, can infer from empty delays list
2011-12-09 08:36:00 +09:00
Damien Elmes
451962d4a8
drop the special config for top level decks
...
New/rev card mixing, collapse time and the timeboxing limit are now a
collection property. I appreciate how it could be useful to have those
settings per top-level deck in some cases, but having some settings inherited
from the top level deck makes for a confusing UI.
2011-12-09 07:55:40 +09:00
Damien Elmes
8c9c3489e5
fetch reviews in subdecks incrementally like new cards
...
- allows separate review order for different decks
- makes new card and rev card handling consistent
- for users who find it confusing to have cards from different decks mixed in
and thus click on each deck in turn, they can now just select the parent
deck and have it work as expected
- for users who want their cards mixed together randomly, they can keep the
cards in a single deck
2011-12-09 04:02:43 +09:00
Damien Elmes
d94f6d2011
block illegal filename characters
2011-12-08 19:23:11 +09:00
Damien Elmes
95106908dd
check sort field when searching
...
If the field they want to search is the one being used to sort, this saves us
having to go the full search route
2011-12-08 09:53:27 +09:00
Damien Elmes
08660f6bf8
test db integrity before upload
2011-12-08 01:06:33 +09:00
Damien Elmes
0ef3fe5d75
fix media unittest, turn of sync during upgrade
2011-12-07 23:23:58 +09:00
Damien Elmes
6356e6f06b
make sure we mod deck on current deck change
2011-12-07 21:50:26 +09:00
Damien Elmes
dd7434a44d
use a class instead of id to specify card styling
2011-12-07 20:04:47 +09:00
Damien Elmes
81c4d24b0e
make sure we bump usn when uploading, or next sync sends data back
2011-12-07 19:59:11 +09:00
Damien Elmes
45ebbd14c8
fix revlog upgrading
2011-12-07 19:58:31 +09:00
Damien Elmes
8358c7e686
remove obsolete queue arg
2011-12-07 19:35:32 +09:00
Damien Elmes
6ce8c9b608
drop tags from sanity check
...
Since we rely on fixIntegrity() to garbage-collect tags and don't try to add
unused ones to the graves, after a check the tag counts will fall out of sync.
2011-12-07 18:33:43 +09:00
Damien Elmes
593e45a9bb
decrease timeout to 30; httplib2 retries for us
2011-12-07 18:08:15 +09:00
Damien Elmes
4b190c3586
run all sync requests through one function
2011-12-07 17:57:07 +09:00
Damien Elmes
9b76a4669c
compress zip, add media sanity check
2011-12-06 23:36:01 +09:00
Damien Elmes
fabec6e920
more sync resuming changes
...
The server now returns the next usn after every addFiles(), so an interrupted
upload doesn't cause the uploaded material to be sent back down.
2011-12-06 23:04:26 +09:00
Damien Elmes
be66c960a9
rework media syncing so we can resume
2011-12-06 22:18:41 +09:00
Damien Elmes
c0edcae238
fix some sync bugs
...
- don't send server graves graves back on the next sync
- make sure we update usns of models/tags/decks as well on upload
- don't die when updating decks after current deck deleted
- report counts when sanity check fails
2011-12-06 01:35:54 +09:00
Damien Elmes
52234f9d9a
removeHook -> remHook
2011-12-06 00:12:36 +09:00
Damien Elmes
4a88885e83
default to compression level 6
2011-12-06 00:05:39 +09:00
Damien Elmes
594204a134
queue argument is obsolete
2011-12-06 00:05:14 +09:00
Damien Elmes
5a3d65ac61
send zips in 2.5MB increments
2011-12-05 22:06:23 +09:00
Damien Elmes
14f7c366d0
add base62
2011-12-05 22:06:09 +09:00
Damien Elmes
d52b2d4801
if counts() is passed a card, add the necessary count
2011-12-05 19:34:25 +09:00
Damien Elmes
8308c79fa6
minor refactor of count handling
...
- drop lrnCount; rename lrnRepCount to lrnCount
- on card fetch, decr count by card.left
- drop cardCounts(), rename repCounts() to just counts()
- fix lrn count bugs
2011-12-05 19:15:46 +09:00
Damien Elmes
e7101faff7
don't overcount learning reps by 1
2011-12-05 17:57:32 +09:00
Damien Elmes
41636f41f8
tweak sync error handling
2011-12-05 17:44:54 +09:00
Damien Elmes
0395047579
initial usn is 0, so distinguish between 0 and false
2011-12-05 15:27:06 +09:00
Damien Elmes
b33c2e99c0
return false, not 'continue', when not finished
2011-12-05 14:43:32 +09:00
Damien Elmes
b99dbb1466
don't .reset() on deck load by default anymore
2011-12-05 13:40:37 +09:00
Damien Elmes
e85603dae6
fix certs bundling
2011-12-04 19:09:47 +09:00
Damien Elmes
cca3b5cba6
scm ts should be ms too, fix unit tests
2011-12-04 17:52:01 +09:00
Damien Elmes
3b0334b04d
add schema check to note save
2011-12-04 16:28:01 +09:00
Damien Elmes
1ec747dbb4
tweak sync hooks
2011-12-04 15:56:38 +09:00
Damien Elmes
6bad4cc8c2
fix sanity check
2011-12-04 15:23:43 +09:00
Damien Elmes
9d5357f7a6
after a save, revert to unmodified state; sync tweaks
2011-12-04 14:56:12 +09:00
Damien Elmes
cdb33cf6a8
don't bump mod time unless the db has actually been changed
2011-12-04 13:51:13 +09:00
Damien Elmes
0ff59b87e9
make sure we commit after media operations
2011-12-04 13:00:38 +09:00
Damien Elmes
457ee809f4
don't implicitly commit in context manager
2011-12-04 13:00:24 +09:00
Damien Elmes
8fff05618c
check download before overwrite
2011-12-03 22:15:36 +09:00