summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lesana/command.py3
1 files changed, 2 insertions, 1 deletions
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 (