mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-26 03:18:48 +01:00
This commit is contained in:
parent
efe37bd4f9
commit
bc1399462f
1 changed files with 8 additions and 0 deletions
|
|
@ -22,6 +22,7 @@ import (
|
|||
"path/filepath"
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/88250/gulu"
|
||||
"github.com/88250/lute"
|
||||
|
|
@ -331,6 +332,13 @@ func InitFlashcards() {
|
|||
continue
|
||||
}
|
||||
|
||||
if 0 == deck.Created {
|
||||
deck.Created = time.Now().Unix()
|
||||
}
|
||||
if 0 == deck.Updated {
|
||||
deck.Updated = time.Now().UnixMilli()
|
||||
}
|
||||
|
||||
Decks[deckID] = deck
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue