Commit graph

4694 commits

Author SHA1 Message Date
Damien Elmes
4442b79db3 Merge pull request #691 from Arthur-Milchior/no_single_name_var_in_test
Improve variable names in tests
2020-07-17 15:37:22 +10:00
Damien Elmes
5f93eaaf8f i18n downgrade&quit button 2020-07-17 15:06:14 +10:00
Arthur Milchior
83c778ea53 gn->deckn in test
Obtained by
```
sed -i "s/\bg1\b/deck1/g" pylib/tests/*py qt/tests/*py
sed -i "s/\bg2\b/deck2/g" pylib/tests/*py qt/tests/*py
```
2020-07-17 06:58:32 +02:00
Arthur Milchior
14421e107c d->col in tests
obtained by
```
sed -i "s/\bd\b/col/g" pylib/tests/*py qt/tests/*py
```
2020-07-17 06:58:32 +02:00
Arthur Milchior
c918d794c2 deck->col in tests
Obtained by
```
sed -i "s/\bdeck\b/col/g" pylib/tests/*py qt/tests/*py
```
2020-07-17 06:50:46 +02:00
Arthur Milchior
9d313ea6b3 f2->note2 in test
Obtained by
```
sed -i "s/\bf2\b/note2/g" pylib/tests/*py qt/tests/*py
```
2020-07-17 06:47:44 +02:00
Arthur Milchior
d4b2982fc2 f->note in test
Obtained by sed -i "s/\bf\b/note/g" pylib/tests/*py qt/tests/*py
2020-07-17 06:47:44 +02:00
Damien Elmes
287b9ec3b6 switch graphRange on revlogRange change 2020-07-17 14:39:08 +10:00
Damien Elmes
2e493e07f4 add range selectors to answer button and hour graphs 2020-07-17 14:39:08 +10:00
Damien Elmes
9a457266f4 Merge pull request #690 from glutanimate/stats-will-show-hooks
Add a couple of hooks to trigger add-on actions before showing stats
2020-07-17 14:38:41 +10:00
Damien Elmes
644b888457 Merge pull request #689 from glutanimate/add-stats-ids
Add IDs to stats sections
2020-07-17 14:37:46 +10:00
Damien Elmes
7d4473d582 Merge pull request #688 from glutanimate/fix-js-eval-when-setting-content-via-url
Fix premature JS evaluation in views that set content via URL
2020-07-17 14:37:02 +10:00
Arthur Milchior
1f51a93fff note->n
Next commit will transform f into note, and this lead to a variable clash here
2020-07-17 06:08:33 +02:00
Glutanimate
7056765179 Fix type annotation for old stats dialog class 2020-07-17 03:08:09 +02:00
Glutanimate
b7c8374095 Add a couple of hooks to trigger add-on actions before showing stats 2020-07-16 21:48:46 +02:00
Glutanimate
7c900abcfb Add IDs to stats sections
Allows more targeted manipulation by add-ons
2020-07-16 20:44:21 +02:00
Glutanimate
a9334014d3 Make sure to set domDone to False before loading URLs
Fixes an issue where JS would be evaluated prematurely in views
directly loaded from URLs.
2020-07-16 19:56:57 +02:00
Damien Elmes
ce2c553840 i18n some sync errors 2020-07-16 13:55:59 +10:00
Damien Elmes
baed2d8fa5 formatting 2020-07-16 13:55:53 +10:00
Damien Elmes
2f2195740d tweak spacing 2020-07-16 13:28:06 +10:00
Damien Elmes
a5db274586 add table to reviews tooltip 2020-07-16 13:25:13 +10:00
Damien Elmes
550e57b4f0 add table in card count tooltip for readability 2020-07-16 13:25:02 +10:00
Damien Elmes
30b3870e1f show all counts in tooltip 2020-07-16 12:28:31 +10:00
Damien Elmes
7504158e00 slightly increase x ticks 2020-07-16 11:53:20 +10:00
Damien Elmes
1306b7071f increase number of y ticks 2020-07-16 11:50:04 +10:00
Damien Elmes
871e25921b fix typo
closes #664
2020-07-16 11:15:12 +10:00
Damien Elmes
e471497bd2 add platform version back into sync metadata 2020-07-16 10:12:41 +10:00
Damien Elmes
56833f0ac7 panic fix was merged into hyper 0.13.7 2020-07-16 09:09:13 +10:00
Damien Elmes
d598a76f4a can't rely on stdout to handle unicode 2020-07-15 09:36:29 +10:00
Damien Elmes
befbd7dd2a Merge pull request #687 from ankitects/revert-686-master
Revert "Added parameter/return types, fixed possible logic error and typo"
2020-07-13 22:01:57 +10:00
Damien Elmes
c6f8854ec8 Revert "Added parameter/return types, fixed possible logic error and typo" 2020-07-13 21:25:44 +10:00
Damien Elmes
9a3a96e599 Merge pull request #686 from zerrs/master
Added parameter/return types, fixed possible logic error and typo
2020-07-13 21:25:16 +10:00
Damien Elmes
178a8fb29e Update customstudy.py 2020-07-13 21:24:18 +10:00
Damien Elmes
35494414cc Merge pull request #684 from flagist0/select-note-type-with-ctrl-plus-digit-key
Allow to choose note type from list by pressing ctrl + row number
2020-07-13 21:23:35 +10:00
Damien Elmes
3b0a01bdc8 smaller button labels on a small screen 2020-07-13 20:52:57 +10:00
Alexander Presnyakov
98238e1707 Don't call setCurrentRow if row didn't change 2020-07-13 12:33:36 +03:00
zzzz
f6c0560660 Added some return and parameter types in customstudy.py, also fixed a possible logic error in plus function and a small typo 2020-07-13 01:32:08 -04:00
Damien Elmes
ed5103141a remove update-alternatives references
6b3d5998cc (commitcomment-40547278)
2020-07-13 13:55:18 +10:00
Damien Elmes
a7c3705d8c ensure sys crates work on older Macs 2020-07-13 13:35:09 +10:00
Damien Elmes
22a87a4f3b vendor coarsetime so we can get the use after free fix 2020-07-13 13:34:37 +10:00
Damien Elmes
c9807581f6 Merge pull request #685 from kelciour/synclog-last-line-scroll
Scroll media sync log to the last line
2020-07-13 13:01:48 +10:00
kelciour
6ca239a247 Scroll media sync log to the last line 2020-07-13 03:06:44 +03:00
Alexander Presnyakov
3ccc6ce61a Allow to choose note type from list by pressing ctrl + row number 2020-07-12 22:15:58 +03:00
Damien Elmes
9a509f5e42 roll back pyo3 for now
0.9 will spit out BorrowMut errors when two concurrent backend
commands are received with allow_threads. The collection mutex protects
most methods, but other attributes like the abort handle are not
protected, so this code may need to be reworked in the future. We
could wrap the entire backend in a mutex, but that means the
long-running syncing code will need to be changed to run in the
background instead.
2020-07-12 20:06:04 +10:00
Damien Elmes
bbc75cdf5d update rslib/rspy deps 2020-07-12 11:38:25 +10:00
Damien Elmes
4e1bc76596 mediasrv symlink fix
https://forums.ankiweb.net/t/anki-2-1-28-beta/629/39
2020-07-11 10:53:41 +10:00
Damien Elmes
dd2960c3e7 Merge pull request #682 from glutanimate/add-top-toolbar-did-redraw-hook
Add top_toolbar_did_redraw hook
2020-07-11 10:20:41 +10:00
Damien Elmes
bcc14bc18e one more attempt at fixing the problem by busting the cache 2020-07-11 09:09:49 +10:00
Glutanimate
ee8696cbf3 Add top_toolbar_did_redraw hook
Notifies add-ons of the top toolbar being redrawn
2020-07-10 17:38:40 +02:00
Damien Elmes
d35bc85ead is:review should include relearning cards
https://forums.ankiweb.net/t/anki-2-1-28-beta/629/36

This issue appears to have existed since the V2 scheduler was
introduced - the old Python search code was ignoring Relearn as well.
2020-07-09 11:07:50 +10:00