16.04.2020, 23:29
Okay lots of plans there..
The log probably ends with ... meaning its reached it max chars, the table is probably longer but log does not show all..
Can you try this:
BR,
Erwin
The log probably ends with ... meaning its reached it max chars, the table is probably longer but log does not show all..
Can you try this:
Code:
result = db:getall('SELECT id, name, type FROM visfloors')
for key, value in ipairs(result) do
if value.type == 'layout' then
log('layout: ' .. value.name .. ' is having id: ' .. value.id)
elseif value.type == 'widget' then
log('widget: ' .. value.name .. ' is having id: ' .. value.id)
else
log('plan: ' .. value.name .. ' is having id: ' .. value.id)
end
end
Erwin