aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2022-08-04 20:01:26 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2022-08-04 20:01:26 +0200
commit495cf0d0aea4447b66f4f2a4797efbdbd78d9a56 (patch)
tree65f57a02f677cdaa96960e6dd33e8130f68f9120
parent088e4cc92e677e03390e7d84a6e8e18c1ef82c3b (diff)
fix expanding query templates
-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 (