mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user