mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Annotations browser: Fix doing a search while also restricting the results to a particular user not working
This commit is contained in:
parent
b2f74d0200
commit
c23e6635a5
@ -1797,7 +1797,7 @@ class DB(object):
|
|||||||
data = [fts_engine_query]
|
data = [fts_engine_query]
|
||||||
if restrict_to_user:
|
if restrict_to_user:
|
||||||
query += ' AND annotations.user_type = ? AND annotations.user = ?'
|
query += ' AND annotations.user_type = ? AND annotations.user = ?'
|
||||||
data += list(*restrict_to_user)
|
data += list(restrict_to_user)
|
||||||
if annotation_type:
|
if annotation_type:
|
||||||
query += ' AND annotations.annot_type = ? '
|
query += ' AND annotations.annot_type = ? '
|
||||||
data.append(annotation_type)
|
data.append(annotation_type)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user