mirror of
https://github.com/ankitects/anki.git
synced 2025-11-14 16:47:12 -05:00
Use function params
This commit is contained in:
parent
5fab04cd94
commit
b0ed5495f8
1 changed files with 2 additions and 2 deletions
|
|
@ -115,13 +115,13 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
// If the cache is empty and a request has not yet been made to fill it
|
// If the cache is empty and a request has not yet been made to fill it
|
||||||
!retentionWorloadInfo ||
|
!retentionWorloadInfo ||
|
||||||
// If the parameters have been changed
|
// If the parameters have been changed
|
||||||
lastParams.toString() !== fsrsParams($config).toString()
|
lastParams.toString() !== params.toString()
|
||||||
) {
|
) {
|
||||||
const request = new GetRetentionWorkloadRequest({
|
const request = new GetRetentionWorkloadRequest({
|
||||||
w: params,
|
w: params,
|
||||||
search: defaultparamSearch,
|
search: defaultparamSearch,
|
||||||
});
|
});
|
||||||
lastParams = [...fsrsParams($config)];
|
lastParams = [...params];
|
||||||
retentionWorloadInfo = getRetentionWorkload(request);
|
retentionWorloadInfo = getRetentionWorkload(request);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue