aboutsummaryrefslogtreecommitdiff
path: root/backend/histplorer.py
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2023-01-15 15:13:33 +1100
committerTerry Truong <terry06890@gmail.com>2023-01-15 15:13:33 +1100
commit534bc456be7858e4a53edaa291347134d027a386 (patch)
tree70b53707ba502da38368b69f92513824b557a9f8 /backend/histplorer.py
parent356ffa2250c66c442cfa8c4e638ca53926396a65 (diff)
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
Diffstat (limited to 'backend/histplorer.py')
-rwxr-xr-xbackend/histplorer.py4
1 files changed, 1 insertions, 3 deletions
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()