25.05.2021, 04:50
Only via DB queries, change IDs to your scheduler/events IDs:
Code:
-- scheduler
id = 1
active = db:getone('SELECT active FROM schedulers WHERE id=?', id)
active = toboolean(active)
grp.checkupdate('1/1/1', active)
-- event
id = 2
active = db:getone('SELECT active FROM scheduler_events WHERE id=?', id)
active = toboolean(active)
grp.checkupdate('1/1/2', active)