Annotations browser: Fix doing a search while also restricting the results to a particular user not working

This commit is contained in:
Kovid Goyal 2020-10-30 14:45:32 +05:30
parent b2f74d0200
commit c23e6635a5
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1797,7 +1797,7 @@ class DB(object):
data = [fts_engine_query]
if restrict_to_user:
query += ' AND annotations.user_type = ? AND annotations.user = ?'
data += list(*restrict_to_user)
data += list(restrict_to_user)
if annotation_type:
query += ' AND annotations.annot_type = ? '
data.append(annotation_type)