From c23e6635a5c52f8c4ce9bd12a8df4556fbfa76da Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 30 Oct 2020 14:45:32 +0530 Subject: [PATCH] Annotations browser: Fix doing a search while also restricting the results to a particular user not working --- src/calibre/db/backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/db/backend.py b/src/calibre/db/backend.py index 043e8b2c51..0ee3cce504 100644 --- a/src/calibre/db/backend.py +++ b/src/calibre/db/backend.py @@ -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)