From 9f90a3b15c168587f95fb76549b382ed02330289 Mon Sep 17 00:00:00 2001 From: ryneeverett Date: Wed, 8 May 2024 15:46:57 -0400 Subject: [PATCH] Fix TypeError Appears to be a typo. File "hindsight/./hindsight_gui.py", line 204, in generate_sqlite analysis_session.generate_sqlite(temp_output) File "hindsight/pyhindsight/analysis.py", line 1082, in generate_sqlite c.execute( TypeError: execute expected at most 2 arguments, got 4 --- pyhindsight/analysis.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyhindsight/analysis.py b/pyhindsight/analysis.py index b395882..1f8182a 100644 --- a/pyhindsight/analysis.py +++ b/pyhindsight/analysis.py @@ -1081,9 +1081,9 @@ def generate_sqlite(self, output_file_path='.temp_db'): if item.row_type.startswith('url'): c.execute( 'INSERT INTO timeline (type, timestamp, url, title, interpretation, profile, source, ' - 'visit_id', 'from_visit', 'visit_duration, visit_count, typed_count, url_hidden, transition) ' + 'visit_id, from_visit, visit_duration, visit_count, typed_count, url_hidden, transition) ' 'VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)', - (item.row_type, friendly_date(item.timestamp), item.url, item.name, item.interpretation, + (item.row_type, friendly_date(item.timestamp), item.url, item.name, item.interpretation, item.profile, item.visit_source, item.visit_duration, item.visit_id, item.from_visit, item.visit_count, item.typed_count, item.hidden, item.transition_friendly))