Skip to content

Commit

Permalink
🎨 Improve performance of exporting .sy.zip for notebook #12653
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Oct 11, 2024
1 parent c930c28 commit 40abcee
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kernel/model/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -1629,6 +1629,8 @@ func exportSYZip(boxID, rootDirPath, baseFolderName string, docPaths []string) (
}

for _, asset := range assets {
util.PushEndlessProgress(Conf.language(65) + " " + fmt.Sprintf(Conf.language(70), asset))

asset = string(html.DecodeDestination([]byte(asset)))
if strings.Contains(asset, "?") {
asset = asset[:strings.LastIndex(asset, "?")]
Expand Down Expand Up @@ -1662,9 +1664,6 @@ func exportSYZip(boxID, rootDirPath, baseFolderName string, docPaths []string) (
}

copiedAssets.Add(asset)

msg := Conf.language(65) + " " + fmt.Sprintf(Conf.language(70), asset)
util.PushEndlessProgress(msg)
}
}

Expand Down

0 comments on commit 40abcee

Please sign in to comment.