prpw/cmd/entry_list.lua
2024-08-10 00:35:03 +00:00

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