Mercurial > prosody-modules
comparison mod_export_skeletons/mod_export_skeletons.lua @ 4821:17fbe82d4bfe
mod_export_skeletons: Remove wildcard query
It is not supported by the storage API, only deletion supports
wildcards.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 10 Dec 2021 14:51:55 +0100 |
| parents | 5704082b8703 |
| children |
comparison
equal
deleted
inserted
replaced
| 4820:5704082b8703 | 4821:17fbe82d4bfe |
|---|---|
| 51 um.initialize_host(host); | 51 um.initialize_host(host); |
| 52 host_initialized[host] = true; | 52 host_initialized[host] = true; |
| 53 end | 53 end |
| 54 | 54 |
| 55 local archive = module:context(host):open_store(store, "archive"); | 55 local archive = module:context(host):open_store(store, "archive"); |
| 56 local iter, total = assert(archive:find(username == "*" or username, query)) | 56 local iter, total = assert(archive:find(username, query)) |
| 57 if total then io.stderr:write(string.format("Processing %d entries\n", total)); end | 57 if total then io.stderr:write(string.format("Processing %d entries\n", total)); end |
| 58 for _, item in iter do | 58 for _, item in iter do |
| 59 local clean = skeleton(item); | 59 local clean = skeleton(item); |
| 60 | 60 |
| 61 -- Normalize top level attributes | 61 -- Normalize top level attributes |
