Skip to content

Commit df13d52

Browse files
zhe6652moonD4rk
authored andcommitted
fix: issue of data missing caused by title being null
1 parent 982c0d9 commit df13d52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/browingdata/history/history.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func (c *ChromiumHistory) Length() int {
7373
type FirefoxHistory []history
7474

7575
const (
76-
queryFirefoxHistory = `SELECT id, url, last_visit_date, title, visit_count FROM moz_places where title not null`
76+
queryFirefoxHistory = `SELECT id, url, COALESCE(last_visit_date, 0), COALESCE(title, ''), visit_count FROM moz_places`
7777
closeJournalMode = `PRAGMA journal_mode=off`
7878
)
7979

0 commit comments

Comments
 (0)