This commit is contained in:
Liang Ding 2022-12-23 22:58:46 +08:00
parent efe37bd4f9
commit bc1399462f
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -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
}
}