This commit is contained in:
Daniel 2024-11-30 18:44:11 +08:00
parent e972e71d40
commit 654d6ee587
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -622,6 +622,7 @@ func ImportData(zipPath string) (err error) {
lockSync()
defer unlockSync()
logging.LogInfof("import data from [%s]", zipPath)
baseName := filepath.Base(zipPath)
ext := filepath.Ext(baseName)
baseName = strings.TrimSuffix(baseName, ext)
@ -656,6 +657,7 @@ func ImportData(zipPath string) (err error) {
return
}
logging.LogInfof("import data from [%s] done", zipPath)
IncSync()
FullReindex()
return