From 495cf0d0aea4447b66f4f2a4797efbdbd78d9a56 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Thu, 4 Aug 2022 20:01:26 +0200 Subject: fix expanding query templates --- lesana/command.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lesana/command.py b/lesana/command.py index 02c44e2..afbf5bf 100644 --- a/lesana/command.py +++ b/lesana/command.py @@ -236,7 +236,8 @@ class Search(Command): collection = self.collection_class(self.args.collection) query = self.args.query if self.args.expand_query_template: - query = collection.render_query_template(query) + for i, q in enumerate(query): + query[i] = collection.render_query_template(q) # sorted results require a less efficient full search rather # than being able to use the list of all documents. if query == ['*'] and not ( -- cgit v1.2.3