Skip to content

Add internal kernel API /api/riff/batchSetRiffCardsDueTime #10423

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
suka233 opened this issue Feb 24, 2024 · 6 comments
Closed

Add internal kernel API /api/riff/batchSetRiffCardsDueTime #10423

suka233 opened this issue Feb 24, 2024 · 6 comments
Assignees
Milestone

Comments

@suka233
Copy link

suka233 commented Feb 24, 2024

In what scenarios do you need this feature?

请求新增API:设置闪卡到期时间

Describe the optimal solution

前端可能的调用方式:
batchSetRiffDate( [ {id ,date} ] : IBatchSetRiffDate[] )

interface IBatchSetRiffDate {
  id: string;
  // YYYYMMDDhhmmss
  date: string;
}

这里我有一点疑惑,就是闪卡的到期时间有1分钟,5分钟,10分钟这样的,如果手动把这张闪卡的到期日设置为11分钟后,会扰乱FSRS算法对于这张卡的安排么?

Describe the candidate solution

No response

Other information

No response

@suka233
Copy link
Author

suka233 commented Feb 24, 2024

这里我有一点疑惑,就是闪卡的到期时间有1分钟,5分钟,10分钟这样的,如果手动把这张闪卡的到期日设置为11分钟后,会扰乱FSRS算法对于这张卡的安排么?

@L-M-Sherlock 请教一下叶佬

@zxhd863943427
Copy link
Contributor

从储存的结构来说会,目前我的思路是提前复习而非修改到期时间。

@L-M-Sherlock
Copy link
Contributor

不会扰乱

@88250 88250 self-assigned this Feb 24, 2024
@zxhd863943427
Copy link
Contributor

zxhd863943427 commented Feb 24, 2024

发现自己看错了……@L-M-Sherlock 所以叶佬修改到期时间是直接改due么?我脑子想的是改Stability😂

@88250 88250 changed the title 请求新增API:设置闪卡到期时间 Add internal kernel API /api/riff/batchSetRiffCardsDueTime Feb 24, 2024
@L-M-Sherlock
Copy link
Contributor

stability 只有复习评分后才会变化。

@88250 88250 added this to the 3.0.1 milestone Feb 24, 2024
88250 added a commit to siyuan-note/riff that referenced this issue Feb 24, 2024

Verified

This commit was signed with the committer’s verified signature.
88250 added a commit that referenced this issue Feb 24, 2024

Verified

This commit was signed with the committer’s verified signature.
@88250
Copy link
Member

88250 commented Feb 24, 2024

http://127.0.0.1:6806/api/riff/batchSetRiffCardsDueTime

{
    "cardDues": [
        {
            "id": "20240118200836-wr0eg52",
            "due": "20240224214400"
        },
        {
            "id": "20240118200836-qsoo1fu",
            "due": "20240224214412"
        }
    ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants