31.05.2023, 11:45
In this case you need to store ids as a table, not as a string:
Tag script:
Code:
ids = db:getlist('SELECT id FROM objects WHERE export=1')
storage.set('export_ids', ids)
Tag script:
Code:
ids = storage.get('export_ids')
for _, id in ipairs(ids) do
grp.addtags(id, 'export')
end