Merge pull request #191 from zhe6652/master

fix: issue of data missing caused by title being null
pull/196/head
ᴍᴏᴏɴD4ʀᴋ 2 years ago committed by GitHub
commit 958701f68f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      internal/browingdata/history/history.go

@ -73,7 +73,7 @@ func (c *ChromiumHistory) Length() int {
type FirefoxHistory []history type FirefoxHistory []history
const ( const (
queryFirefoxHistory = `SELECT id, url, last_visit_date, title, visit_count FROM moz_places where title not null` queryFirefoxHistory = `SELECT id, url, COALESCE(last_visit_date, 0), COALESCE(title, ''), visit_count FROM moz_places`
closeJournalMode = `PRAGMA journal_mode=off` closeJournalMode = `PRAGMA journal_mode=off`
) )

Loading…
Cancel
Save