🎨 Support downloading cloud data snapshots to local on demand https://github.com/siyuan-note/siyuan/issues/8057

This commit is contained in:
Liang Ding 2023-04-21 20:50:24 +08:00
parent bec5fbc9cb
commit f3de2e9292
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
4 changed files with 11 additions and 8 deletions

View file

@ -672,7 +672,7 @@ func GetCloudRepoTagSnapshots() (ret []*dejavu.Log, err error) {
return
}
func GetCloudRepoSnapshots(marker string) (ret []*dejavu.Log, nextMarker string, err error) {
func GetCloudRepoSnapshots(page int) (ret []*dejavu.Log, pageCount, totalCount int, err error) {
ret = []*dejavu.Log{}
if 1 > len(Conf.Repo.Key) {
err = errors.New(Conf.Language(26))
@ -684,7 +684,7 @@ func GetCloudRepoSnapshots(marker string) (ret []*dejavu.Log, nextMarker string,
return
}
logs, nextMarker, err := repo.GetCloudRepoLogs(marker)
logs, pageCount, totalCount, err := repo.GetCloudRepoLogs(page)
if nil != err {
return
}