diff options
Diffstat (limited to 'backend/histplorer.py')
| -rwxr-xr-x | backend/histplorer.py | 4 |
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() |
