12 lines
302 B
Lua
12 lines
302 B
Lua
local function cmd(args)
|
|
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)
|
|
end
|
|
end
|
|
end
|
|
|
|
return cmd
|