aboutsummaryrefslogtreecommitdiff
path: root/backend/histplorer.py
diff options
context:
space:
mode:
Diffstat (limited to 'backend/histplorer.py')
-rwxr-xr-xbackend/histplorer.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/backend/histplorer.py b/backend/histplorer.py
index c20116e..988b69d 100755
--- a/backend/histplorer.py
+++ b/backend/histplorer.py
@@ -249,7 +249,9 @@ def lookupEvents(start: HistDate | None, end: HistDate | None, scale: int, ctg:
incl = None
# Get any additional inclusion
if incl is not None:
- row = dbCur.execute(query + ' WHERE events.id = ?', (incl,)).fetchone()
+ constraints.append('events.id = ?')
+ params.append(incl)
+ row = dbCur.execute(query + ' WHERE ' + ' AND '.join(constraints), params).fetchone()
if row is not None:
if len(results) == resultLimit:
results.pop()