mirror of
https://github.com/osmarks/random-stuff
synced 2026-09-17 17:11:20 +00:00
yet more dotfiles
This commit is contained in:
+3
-3
@@ -1,6 +1,6 @@
|
||||
import sqlite3
|
||||
import sqlite3, sys
|
||||
|
||||
longterm = sqlite3.connect("/data/archive/lthist.sqlite3")
|
||||
longterm = sqlite3.connect(sys.argv[1])
|
||||
longterm.executescript(f"""
|
||||
CREATE TABLE IF NOT EXISTS places (
|
||||
guid TEXT PRIMARY KEY,
|
||||
@@ -33,4 +33,4 @@ ON CONFLICT DO UPDATE SET lastModified = excluded.lastModified, title = excluded
|
||||
# TODO: possibly wrong with new profile, might need to increment historyvisits or something
|
||||
longterm.execute("INSERT INTO historyvisits SELECT (moz_historyvisits.id || '/' || visit_date), moz_places.guid, visit_date, visit_type FROM moz_historyvisits JOIN moz_places ON moz_places.id = moz_historyvisits.place_id ON CONFLICT DO NOTHING;")
|
||||
|
||||
longterm.commit()
|
||||
longterm.commit()
|
||||
|
||||
Reference in New Issue
Block a user