Changeset

4820:5704082b8703

mod_export_skeletons: Fix logic to do wildcard search It passed false when it should have passed true for "*"
author Kim Alvefur <zash@zash.se>
date Fri, 10 Dec 2021 14:19:10 +0100
parents 4819:b1882a40c246
children 4821:17fbe82d4bfe
files mod_export_skeletons/mod_export_skeletons.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_export_skeletons/mod_export_skeletons.lua	Fri Dec 10 00:20:21 2021 +0100
+++ b/mod_export_skeletons/mod_export_skeletons.lua	Fri Dec 10 14:19:10 2021 +0100
@@ -53,7 +53,7 @@
 		end
 
 		local archive = module:context(host):open_store(store, "archive");
-		local iter, total = assert(archive:find(username ~= "*" and username, query))
+		local iter, total = assert(archive:find(username == "*" or username, query))
 		if total then io.stderr:write(string.format("Processing %d entries\n", total)); end
 		for _, item in iter do
 			local clean = skeleton(item);