mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Flashcard new/review card limit support configure to 0 Fix https://github.com/siyuan-note/siyuan/issues/7841
This commit is contained in:
parent
8a2a724341
commit
307eab1b35
3 changed files with 10 additions and 10 deletions
|
|
@ -95,12 +95,12 @@ func setFlashcard(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
if 1 > flashcard.NewCardLimit {
|
||||
flashcard.NewCardLimit = 1
|
||||
if 0 > flashcard.NewCardLimit {
|
||||
flashcard.NewCardLimit = 20
|
||||
}
|
||||
|
||||
if 1 > flashcard.ReviewCardLimit {
|
||||
flashcard.ReviewCardLimit = 1
|
||||
if 0 > flashcard.ReviewCardLimit {
|
||||
flashcard.ReviewCardLimit = 200
|
||||
}
|
||||
|
||||
model.Conf.Flashcard = flashcard
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue