From 534bc456be7858e4a53edaa291347134d027a386 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Sun, 15 Jan 2023 15:13:33 +1100 Subject: Fix searches failing in certain cases Fix server handling of 'incl' query param Force update of idToEvent for certain searches Adjust search-highlight-removal code to avoid pending-search case Fix event-transition-skipping code in updateLayout() to handle quick repeated calls --- backend/histplorer.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'backend') diff --git a/backend/histplorer.py b/backend/histplorer.py index f25e727..26e131e 100755 --- a/backend/histplorer.py +++ b/backend/histplorer.py @@ -250,9 +250,7 @@ def lookupEvents( incl = None # Get any additional inclusion if incl is not None: - constraints.append('events.id = ?') - params.append(incl) - row = dbCur.execute(query + ' WHERE ' + ' AND '.join(constraints), params).fetchone() + row = dbCur.execute(query + ' WHERE events.id = ?', (incl,)).fetchone() if row is not None: if len(results) == resultLimit: results.pop() -- cgit v1.2.3