refactor: format firefox download code

pull/83/head
moond4rk 4 years ago committed by ᴍᴏᴏɴD4ʀᴋ
parent d1b05814ea
commit d1a8b85a6e
  1. 9
      core/data/parse.go

@ -8,8 +8,8 @@ import (
"os"
"path/filepath"
"sort"
"time"
"strings"
"time"
"hack-browser-data/core/decrypt"
"hack-browser-data/log"
@ -535,9 +535,9 @@ func (d *downloads) FirefoxParse() error {
for downloadRows.Next() {
var (
content, url string
place_id, dateAdded int64
placeID, dateAdded int64
)
err = downloadRows.Scan(&place_id, &content, &url, &dateAdded)
err = downloadRows.Scan(&placeID, &content, &url, &dateAdded)
if err != nil {
log.Warn(err)
}
@ -555,10 +555,11 @@ func (d *downloads) FirefoxParse() error {
EndTime: utils.TimeStampFormat(endTime.Int() / 1000),
})
}
tempMap[place_id] = url
tempMap[placeID] = url
}
return nil
}
func (d *downloads) CopyDB() error {
return copyToLocalPath(d.mainPath, filepath.Base(d.mainPath))
}

Loading…
Cancel
Save