Damien Elmes
499f888ee9
Merge pull request #403 from agentydragon/named_card_type_2
...
Add named constant for manually buried queue
2019-12-28 08:52:05 +10:00
Michal Pokorný (Rai)
2c00e6c6ec
Add named constant for manually buried queue
2019-12-27 23:43:20 +01:00
Damien Elmes
ccc81fc323
Merge pull request #402 from agentydragon/named_card_type_1
...
Add named constant for relearning cards
2019-12-28 08:27:25 +10:00
Michal Pokorný (Rai)
ce4fa1a5fb
Add named constant for relearning cards
2019-12-27 23:05:25 +01:00
Damien Elmes
729330324e
Merge pull request #401 from agentydragon/sched-types
...
Use self._deckLimit helper in more places in scheduler v2
2019-12-28 07:12:58 +10:00
Damien Elmes
0981523af0
Merge pull request #400 from agentydragon/typing-sv2
...
Some type declarations for scheduler v2
2019-12-28 07:12:02 +10:00
Damien Elmes
ad64ebe035
Merge pull request #399 from agentydragon/extra-ws
...
Remove extra whitespace at end of line
2019-12-28 07:11:40 +10:00
Damien Elmes
3d0f20f971
Merge pull request #397 from agentydragon/remove-coding
...
Remove unneeded utf-8 encoding declaration
2019-12-28 07:11:21 +10:00
Damien Elmes
ec0c85e292
Merge pull request #396 from agentydragon/remove-reimport2
...
Remove unnecessary anki.* qualification of already imported Note, Card
2019-12-28 07:11:14 +10:00
Damien Elmes
20089597d1
Merge pull request #395 from agentydragon/remove-reimport
...
Remove unneeded re-import of anki.db
2019-12-28 07:11:03 +10:00
Damien Elmes
0799f50df0
Merge pull request #394 from agentydragon/doc-for-fix-integrity
...
Add return value comment for fixIntegrity method of Collection
2019-12-28 07:10:50 +10:00
Damien Elmes
c91b1377d8
Merge pull request #392 from agentydragon/notetype
...
More type annotations for notes.py
2019-12-28 07:05:57 +10:00
Michal Pokorný (Rai)
9fc63ff567
Typing for scheduler v2
2019-12-27 19:36:57 +01:00
Michal Pokorný (Rai)
0199597ecb
Remove extra whitespace at end of line
2019-12-27 19:26:48 +01:00
Michal Pokorný (Rai)
f03ae1c45a
Use self._deckLimit helper
2019-12-27 19:25:22 +01:00
Michal Pokorný (Rai)
4a89cd1a25
Remove unnecessary anki.* qualification of already imported Note, Card
2019-12-27 19:22:44 +01:00
Michal Pokorný (Rai)
9383a72704
Remove unneeded utf-8 encoding declaration
...
UTF-8 is the default as of Python 3.
See: https://docs.python.org/3/reference/lexical_analysis.html#encoding-declarations
2019-12-27 18:06:06 +01:00
Michal Pokorný (Rai)
1ea0bb3453
Remove unneeded re-import of anki.db
2019-12-27 17:22:53 +01:00
Michal Pokorný (Rai)
9a2348d902
Fix import order
2019-12-27 17:21:42 +01:00
Michal Pokorný (Rai)
eba46ad555
Add return value comment for fixIntegrity method of Collection
2019-12-27 17:20:22 +01:00
Michal Pokorný (Rai)
5ee08b1b36
Type annotations in notes.py
2019-12-27 17:14:46 +01:00
Michal Pokorný (Rai)
3357ecfed3
Add type annotation for model
2019-12-27 17:14:46 +01:00
Damien Elmes
7abd58382f
hold off on general release of v2 scheduler for now
...
The switch to the new timezone code may shift some users back or forth
a day, so it'd be better to have this in place prior to making the
new scheduler the default.
2019-12-27 21:53:20 +10:00
Damien Elmes
683edeeb07
send tz offset at start of sync; allow passing in offset at collection creation
2019-12-27 21:53:20 +10:00
Damien Elmes
92673c99d8
rework the new scheduler's rollover/day counting code
...
The previous implementation interpreted the creation date as a local
time, and applied the rollover to that. If the initial creation date
was around midnight local time, even a one hour change due to daylight
savings could result in Anki skipping or doubling up on a day. To
address this, the rollover is now applied to the current time instead
of the creation date.
The new code needs the current time passed into it. This makes it
easier to unit test, and for AnkiWeb to be able to use the user's local
timezone.
The new timezone code is currently disabled, as this code needs to be
ported to all clients before it can be activated.
2019-12-27 21:53:20 +10:00
Damien Elmes
5493ca554f
fix sidebar background color on windows 10
2019-12-27 21:53:20 +10:00
Damien Elmes
e7e8c34d27
Merge pull request #390 from zjosua/patch-1
...
Update README.development
2019-12-27 08:48:02 +10:00
Damien Elmes
0b755202e7
time of day hack in tests was off by an hour
2019-12-27 08:43:25 +10:00
Damien Elmes
6a83654718
fix 32 bit Linux builds
...
if you're reusing a venv, run 'make clean' and 'pip uninstall maturin'
before building again.
2019-12-27 08:42:48 +10:00
Damien Elmes
2ad7f6afc6
check depends on build
2019-12-27 08:40:46 +10:00
zjosua
5e217f5587
Update README.development
...
Add instruction to build the Python virtual environment with --system-site-packages when using the distro-installed PyQt5.
2019-12-26 14:28:19 +01:00
Damien Elmes
de980055e6
Merge pull request #386 from agentydragon/ref
...
Use named groups instead of numbered groups to refer to clozeReg
2019-12-26 10:10:47 +10:00
Michal Pokorný (Rai)
a0d3c242af
Rename constants
2019-12-26 00:38:54 +01:00
Damien Elmes
18d8cb561c
add note about pre-push
2019-12-26 09:30:45 +10:00
Rai
020fa0b2f8
Merge branch 'master' into ref
2019-12-25 23:10:28 +01:00
Damien Elmes
49a2bd52f0
Merge pull request #387 from agentydragon/classmethods
...
Use @classmethod on methods that do not depends on instance state
2019-12-26 07:52:51 +10:00
Damien Elmes
df76e8a8ee
Merge pull request #388 from agentydragon/use-setdefault
...
Use dict.setdefault
2019-12-26 07:43:01 +10:00
Damien Elmes
3f0b4ff3f6
isort tests; black/isort should notice changes to tests
2019-12-26 07:36:26 +10:00
Damien Elmes
5bb8d317ee
don't write test data in ~
2019-12-26 07:00:10 +10:00
Damien Elmes
5b831dd9db
update ts lock
2019-12-26 06:59:59 +10:00
Michal Pokorný (Rai)
60438a0219
Use dict.setdefault
2019-12-25 15:34:30 +01:00
Michal Pokorný (Rai)
ebd07a064e
Use @classmethod on methods that do not depends on instance state
2019-12-25 15:12:48 +01:00
Michal Pokorný (Rai)
567b3670b7
Use named groups instead of numbered groups to refer to clozeReg
2019-12-25 15:06:00 +01:00
Damien Elmes
ad703f9631
drop oneshell from makefile
...
It's preventing @ prefixes on subsequent lines from being honored.
2019-12-25 16:05:01 +10:00
Damien Elmes
e5c4618a9a
format tests
2019-12-25 14:18:34 +10:00
Damien Elmes
9791bcb36b
more tests fail close to 4am; automatically adjust the time instead
2019-12-25 14:08:04 +10:00
Damien Elmes
40b5051a92
disable test around daily cutoff time
2019-12-25 13:43:08 +10:00
Damien Elmes
94485f36ae
fix handling of typing cards
2019-12-25 13:01:19 +10:00
Damien Elmes
f4c5aac163
Merge pull request #385 from agentydragon/rai-about
...
Adding myself to contributor list
2019-12-25 12:22:04 +10:00
Damien Elmes
37d5ea8469
tweak dev docs
2019-12-25 12:13:28 +10:00