Damien Elmes
4b98ce0145
Merge pull request #917 from hgiesel/querynozero3
...
Coerce added/edited:0 to 1, Constrain rated:n to 1-365
2021-01-11 16:24:12 +10:00
Damien Elmes
07e0df5176
Merge pull request #915 from RumovZ/fix-template-filter
...
Fix _template_filter and update want_release_gil()
2021-01-11 16:20:50 +10:00
Damien Elmes
6f83c7120c
Merge pull request #916 from khonkhortisan/patch-1
...
typo
2021-01-11 16:16:09 +10:00
Henrik Giesel
5b1bf8a10e
Fix formatting
2021-01-10 16:38:20 +01:00
Henrik Giesel
40ab80f70e
Add a few rslib unit tests
2021-01-10 16:29:10 +01:00
Henrik Giesel
3d2fcb6215
Adjust pyblib test_find
2021-01-10 16:25:52 +01:00
Henrik Giesel
027677ac6d
Remove coercion in write_rated
2021-01-10 16:23:53 +01:00
Kyle Mills
386f42070c
typo
2021-01-10 07:18:08 -08:00
Henrik Giesel
d7513fd33d
Coerce added/edited:0 to 1, constrain rated:n to 1 <= 365
2021-01-10 16:16:17 +01:00
RumovZ
3d93d440c9
Also add FilterToSearch to want_release_gil()
2021-01-10 11:31:00 +01:00
RumovZ
9ad005aec5
Don't add 1 when calling _template_filter()
...
See #913 .
2021-01-10 11:30:14 +01:00
Damien Elmes
eda1fb49fd
favour readability over brevity in filter conversion
2021-01-10 09:19:33 +10:00
Damien Elmes
ffec5ab461
add type to _named_filter()
...
The ...Value types generated by mypy-protobuf are only available
at typechecking time, and pylint chokes on them despite the use
of annotations from __future__ - so we either need to quote them,
or use # pylint: disable=no-member
2021-01-10 09:11:48 +10:00
Damien Elmes
cbd4439f30
Merge pull request #913 from RumovZ/fix-write-template
...
Fix ordinal case in write_template
2021-01-10 08:58:00 +10:00
Damien Elmes
6fecea257b
Merge pull request #911 from RumovZ/backend-filters
...
Backend filters
2021-01-10 08:56:57 +10:00
Damien Elmes
9d95e11505
fix protobuf formatting adding carriage returns on Windows
2021-01-10 08:48:20 +10:00
RumovZ
8798d84cfd
Format backend.proto
2021-01-09 20:09:47 +01:00
RumovZ
0bf7ad0951
Merge branch 'master' into backend-filters
...
Adapt new formatting.
2021-01-09 19:03:43 +01:00
RumovZ
4911757177
Fix ordinal case in write_template
...
Internal card ordinals start at 0, so add 1 again when writing a
template search string from a parsed ordinal.
2021-01-09 17:30:12 +01:00
RumovZ
02837ebbef
Use explicit wrapper functions to get filters
2021-01-09 16:48:47 +01:00
RumovZ
370c689c83
Prettify frontend filter code
2021-01-09 12:34:46 +01:00
RumovZ
0cb75f5601
Use backend filters instead of literal searches
2021-01-09 10:51:15 +01:00
RumovZ
455b693623
Provide filter searches through backend
2021-01-09 10:50:08 +01:00
Damien Elmes
4ab52b8763
move exports_files call into ts/BUILD.bazel
...
Suspect it has caused a regression when building from an external
repo.
2021-01-09 18:03:26 +10:00
Damien Elmes
1b6f5318e3
document extra formatter
2021-01-09 17:42:26 +10:00
Damien Elmes
e9dee35885
add clang-format for backend.proto formatting
2021-01-09 17:08:50 +10:00
Damien Elmes
4fe0401d43
format backend.proto with standard Google style
2021-01-09 15:50:24 +10:00
Damien Elmes
ca8b18c5f2
fix some comments in wrong position after format
2021-01-09 14:26:51 +10:00
Damien Elmes
b43515ceff
add .sql file formatter
...
Uses the logic from the sqltools VSCode add-on, with a workaround
for the use of 'type' in some table columns.
By detecting the presence of 'BUILD_WORKSPACE_DIRECTORY' we can tell
if the rule is running in test mode or was run directly, avoiding the
need for separate check and fix rules. It might be nice to extend this
to other formatting rules in the future as well.
2021-01-09 14:22:49 +10:00
Damien Elmes
a055663046
reformat .sql files
2021-01-09 14:08:55 +10:00
Damien Elmes
d4b36ef884
Merge pull request #910 from abdnh/exclude-gen
...
Exclude aqt/hooks_gen.py from formatting
2021-01-09 10:27:10 +10:00
abdo
4418e896bd
Exclude aqt/hooks_gen.py from formatting
2021-01-09 03:01:48 +03:00
Damien Elmes
e440b475af
Merge pull request #907 from hgiesel/easegraph
...
Include many more cards in the ease graph
2021-01-09 09:22:42 +10:00
Damien Elmes
7e3f321aae
Merge pull request #908 from hgiesel/easereset
...
Reset ease to 0 for after rescheduling cards as new
2021-01-09 09:21:22 +10:00
Damien Elmes
5b5c134992
Merge pull request #909 from wallgrenen/remove-unused-variables
...
remove unused variables and commented-out code
2021-01-09 08:56:25 +10:00
wallgrenen
3a1ef7b651
remove unused variables and commented-out code
2021-01-08 20:53:27 +01:00
Henrik Giesel
e9e8adec9b
Don't import now unused INITIAL_EASE_FACTOR_THOUSANDS
2021-01-08 19:32:36 +01:00
Henrik Giesel
27dfb57ce7
Reset ease to 0 for after rescheduling cards as new
2021-01-08 18:15:24 +01:00
Henrik Giesel
cef590e878
Include review and relearn cards for ease graph
2021-01-08 17:57:47 +01:00
Damien Elmes
a890b6a1d3
Merge pull request #906 from hgiesel/nozerointervals
...
Omit zero interval, and don't nice the values in Review intervals graph
2021-01-08 22:04:01 +10:00
Henrik Giesel
4e9d54940e
Add return values to increment and adjustTicks
2021-01-08 12:29:22 +01:00
Henrik Giesel
3f5d645987
Add es2019.array to TypeScript libs, so we can use .flatten and .flatMap
2021-01-08 12:23:21 +01:00
Henrik Giesel
3aa63d871c
Fix cutting off of Review Interval bins
2021-01-08 12:11:53 +01:00
Damien Elmes
61583aae03
fix reposition not honoring provided order, and add unit test
2021-01-08 20:38:49 +10:00
Henrik Giesel
c743d956d7
Omit zero interval, and don't nice the values
...
* to keep promise of radio buttons:
* 1 month should mean 30/31 days
2021-01-08 10:07:42 +01:00
Damien Elmes
4b9e5f425b
Merge pull request #904 from hgiesel/propdue
...
Streamlining `is:due`, `prop:due`, and the FutureDue graph
2021-01-08 16:34:53 +10:00
Damien Elmes
ba548f085f
Merge pull request #905 from hgiesel/intervalsgraph
...
Include many more cards in the Review Intervals graph
2021-01-08 16:15:20 +10:00
Damien Elmes
ba665b0e02
handle SortOrderProto conversion separately, and use enum getter
...
In most cases we can just fall back on the default enum value instead
of caring if it's missing/invalid.
2021-01-08 15:56:20 +10:00
Damien Elmes
f20a8f71b7
convert sort_kind_from_pb into from impl
2021-01-08 09:42:54 +10:00
Damien Elmes
336cb3595b
convert from protobuf enum, rather than the underlying i32
2021-01-08 09:24:03 +10:00