From 16fb9bc80e56c8c3088736a1ab2b9e5fd9fc6ef7 Mon Sep 17 00:00:00 2001 From: Andrea Scarpino Date: Thu, 4 Jan 2018 19:46:18 +0100 Subject: [PATCH] scripts: filter history records We don't need to import history records about `moz-extensions`, `about` pages, `dactyl` and so on... --- scripts/hist_importer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/hist_importer.py b/scripts/hist_importer.py index 84fada560..07731e61d 100755 --- a/scripts/hist_importer.py +++ b/scripts/hist_importer.py @@ -142,7 +142,8 @@ def run(): source, dest = args.source, args.dest query = { 'firefox': 'select url,title,last_visit_date/1000000 as date ' - 'from moz_places', + 'from moz_places where url like "http%" or url ' + 'like "ftp%" or url like "file://%"', 'chrome': 'select url,title,last_visit_time/10000000 as date ' 'from urls', }