04.10.2018, 07:16
What do you mean by the actual time?
You can get units like this, then use object.units when generating CSV:
You can get units like this, then use object.units when generating CSV:
Code:
query = 'SELECT address, datatype, name, units FROM objects WHERE disablelog=0'
for _, object in ipairs(db:getall(query)) do
objects[ tonumber(object.address) ] = {
datatype = tonumber(object.datatype),
name = tostring(object.name or ''),
units = tostring(object.units or ''),
}
end