06.09.2023, 10:55
This won't work without an extra grp.find or a db query:
Code:
json = require('json')
objs = grp.tag('my_tag_name')
for _, obj in ipairs(objs) do
enums = db:getone('SELECT enums FROM objects WHERE id=?', obj.id)
enums = json.decode(enums)
log(enums)
end