Damien Elmes
03db16460a
log to the terminal as well
2020-04-06 15:57:13 +10:00
Damien Elmes
dc62d5072c
use bytes for deck config proto
2020-04-06 15:39:47 +10:00
Damien Elmes
164bd29438
use bytes for config proto
2020-04-06 15:39:47 +10:00
Damien Elmes
991e6bdd4c
use a new file each time when testing graphs
2020-04-06 15:39:47 +10:00
Damien Elmes
5a0203c7b4
display warning when config load fails
2020-04-06 15:39:47 +10:00
Damien Elmes
34cca119e3
use blobs for config
2020-04-06 15:39:47 +10:00
Damien Elmes
676f4e74a8
store config in separate DB table
...
- mtime is tracked on each key individually, which will allow
merging of config changes when syncing in the future
- added col.(get|set|remove)_config()
- in order to support existing code that was mutating returned
values (eg col.conf["something"]["another"] = 5), the returned list/dict
will be automatically wrapped so that when the value is dropped, it
will save the mutated item back to the DB if it's changed. Code that
is fetching lists/dicts from the config like so:
col.conf["foo"]["bar"] = baz
col.setMod()
will continue to work in most case, but should be gradually updated to:
conf = col.get_config("foo")
conf["bar"] = baz
col.set_config("foo", conf)
2020-04-06 15:39:47 +10:00
Damien Elmes
8b76098bc7
omit period in steps when possible
2020-04-06 15:39:47 +10:00
Damien Elmes
69e8e3ffbc
Merge pull request #539 from Arthur-Milchior/remove_useless_recursion
...
Remove useless recursion in DeckManager.rem
2020-04-06 15:32:05 +10:00
Arthur Milchior
7365b93c1a
Remove useless recursion in DeckManager.rem
...
For any deck the children of it's children are its children. So
applying rem to children of children is useless and actually slightly
costly for deep subdecks
2020-04-05 11:33:23 +02:00
Damien Elmes
484377b809
downgrade when writing dummy collection
2020-04-04 18:43:26 +10:00
Damien Elmes
0750ad5c62
fix duplicates search
2020-04-04 17:38:35 +10:00
Damien Elmes
7375a0389a
add flag to skip downgrade on collection close
...
Disabled for now; when enabled it will allow faster collection
open and close in the normal case, while continuing to downgrade
when exporting or doing a full sync.
Also, when downgrading is disabled, the journal mode is no longer
changed back to delete.
2020-04-04 17:21:45 +10:00
Damien Elmes
45ea0ddefd
use separate schema version for tag changes
...
Will prevent issues if user upgrades after an unclean shutdown
2020-04-04 10:14:51 +10:00
Damien Elmes
2cff078b50
require new maturin release for 32 bit support+pypi fix
...
closes #538
2020-04-04 07:39:33 +10:00
Damien Elmes
3b619c4ca5
use case folding when sorting in canonify
2020-04-03 19:34:46 +10:00
Damien Elmes
ac4284b2de
update tag handling
...
- tag list stored in a separate DB table
- non-wildcard searches now do full unicode case folding
(eg tag:masse matches 'Maße')
- wildcard matches do simple unicode case folding
- some functions haven't been updated yet, so ascii folding will
continue to be used in some operations
2020-04-03 19:34:46 +10:00
Damien Elmes
333d0735ff
preserve mtime/usn when syncing deck config, and add snake_case names
2020-04-03 19:34:46 +10:00
Damien Elmes
d5f6d8b476
set col mod explicitly in decks.select()
2020-04-03 19:34:46 +10:00
Damien Elmes
ab6eeb5882
ensure pending deck/tag/note type changes flushed before searching
2020-04-03 19:34:46 +10:00
Damien Elmes
2c99a4203f
Merge pull request #537 from Arthur-Milchior/add_card_did_init
...
hook add_card_did_init
2020-04-03 19:34:33 +10:00
Damien Elmes
122378c88c
Merge pull request #530 from evandroforks/check_python_wheels
...
Set to checks.yml install and import anki wheels
2020-04-03 19:33:53 +10:00
Arthur Milchior
657fa9758b
hook add_card_did_init
2020-04-03 11:03:08 +02:00
evandrocoan
e1cb04c45d
Set checks.yml pyenv and pip wheels cache keys as multiline strings
2020-04-03 01:27:40 -03:00
evandrocoan
4ad03fe4ba
Fixed double python version check for python_requires=">=3.7"
2020-04-02 22:56:53 -03:00
evandrocoan
efe319ec95
Deprecated sdist wheels and pyqtwebengine as dependency
2020-04-02 22:56:48 -03:00
evandrocoan
274944e678
Set the minimum python version required by anki on qt/setup.py
2020-04-02 22:56:44 -03:00
evandrocoan
2f9979bd30
Fixed main make add-buildhash not renaming pip sdist packages
2020-04-02 22:56:41 -03:00
evandrocoan
50e9780e66
Set to build a source distribution instead of build distribution
...
for aqt on qt/Makefile, because .whl files are just zip simple
zip files and do not support dynamic versioning. Also, there is no
restriction for aqt to be shipped as source tarball because it does
not ship any binaries.
2020-04-02 22:56:37 -03:00
evandrocoan
eb4b77728b
Fixed setup.py installing pyqtwebengine on older versions of pyqt
2020-04-02 22:56:33 -03:00
evandrocoan
3dd474288d
Set to Windows build check to pass all wheels to pip at once
2020-04-02 22:56:29 -03:00
evandrocoan
000c4c6428
Fixed checks.yml hashFiles not using the correct glob pattern
...
This project requirements files are named .txt and .dev
2020-04-02 22:56:24 -03:00
evandrocoan
1962456821
Set to checks.yml install and import anki wheels
...
# Conflicts:
# .github/workflows/checks.yml
2020-04-02 22:56:13 -03:00
Damien Elmes
6cf3b0ca18
add type checking to previewer
2020-04-03 09:13:33 +10:00
Damien Elmes
6049e15dac
add missing license header
2020-04-03 09:05:32 +10:00
Damien Elmes
a359c27c25
use old name for preview dialog to avoid breaking add-ons
2020-04-03 09:00:18 +10:00
Damien Elmes
5f9c126caa
fix some errors in the previewing code
2020-04-03 09:00:08 +10:00
Damien Elmes
ee71e5dd59
use support URL and point to source repo
2020-04-03 08:44:59 +10:00
Damien Elmes
342bb64092
Merge pull request #535 from evandroforks/upload_wheels_to_pypi
...
Created the GitHub Actions step Upload to PyPi
2020-04-03 08:40:17 +10:00
Damien Elmes
4790fec881
render() conflicts with Qt method
2020-04-03 08:29:35 +10:00
Damien Elmes
de79087620
be explicit that the method is a no-op
2020-04-03 08:27:56 +10:00
Damien Elmes
f5e0ad8fad
tweak wording
2020-04-03 08:27:26 +10:00
Damien Elmes
eae46b4a6f
Merge pull request #532 from Arthur-Milchior/previewer
...
Previewer
2020-04-03 08:20:43 +10:00
evandrocoan
58ba764cb6
Fixed old cache making build fail
...
# Conflicts:
# .github/workflows/checks.yml
2020-04-02 14:47:10 -03:00
Arthur Milchior
cd1fd6f9a2
snake case
2020-04-02 17:44:06 +02:00
Arthur Milchior
00d04cd6c9
Previewer is a QDialog
...
As suggested by Glutanimate in https://github.com/ankitects/anki/pull/532#discussion_r401256921
2020-04-02 17:44:06 +02:00
Arthur Milchior
6564f00748
Previewer: parent become private
...
It seems parent is a method of QDialog, so it creates a typing problem
2020-04-02 17:44:06 +02:00
Arthur Milchior
31f2f60757
Methods used by browser are not public
...
As suggested by Glutanimate on https://github.com/ankitects/anki/pull/532#discussion_r401254100
2020-04-02 17:44:06 +02:00
Arthur Milchior
0e21978577
remove the word preview from previewer variable
...
As suggested by glutanimate https://github.com/ankitects/anki/pull/532#discussion_r401255290
2020-04-02 17:44:06 +02:00
Arthur Milchior
92cec5c327
removing PreviewDialog dataclass
...
It can be replaced by the previewer itself. As suggested by
Glutanimate https://github.com/ankitects/anki/pull/532#discussion_r401252970
2020-04-02 17:44:06 +02:00