2024-08-10 00:35:03 +00:00
|
|
|
local function cmd(args)
|
2024-08-12 00:40:40 +00:00
|
|
|
local rtn = {}
|
2024-08-10 00:35:03 +00:00
|
|
|
local entries = env.xmlFindTags(env.db,"entries")[1]
|
|
|
|
entries = env.xmlFindTags(entries,"entry")
|
|
|
|
for i,entry in pairs(entries) do
|
|
|
|
if (entry.attrs.removed ~= "true") then
|
|
|
|
print(entry.attrs.id .. " " ..entry.attrs.date.. " " ..entry.attrs.name)
|
2024-08-12 00:40:40 +00:00
|
|
|
table.insert(rtn,entry)
|
2024-08-10 00:35:03 +00:00
|
|
|
end
|
|
|
|
end
|
2024-08-12 00:40:40 +00:00
|
|
|
return rtn
|
2024-08-10 00:35:03 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
return cmd
|