More info about audiogens on /api/debug/running

This commit is contained in:
boyska 2016-08-23 17:12:43 +02:00
parent 06e6402163
commit 162dac71b0
No known key found for this signature in database
GPG key ID: 7395DCAE58289CA9

View file

@ -51,6 +51,10 @@ def get_scheduled_audiogen():
info['running_time'] = orig_info['running_time'].isoformat()
info['audiospec'] = orig_info['audiospec']
info['timespec'] = model.get_alarm_by_id(timespec_eid)
if 'actions' in info['timespec']:
info['timespec']['actions'] = {
actid: model.get_action_by_id(actid)
for actid in info['timespec']['actions']}
info['greenlet'] = hex(id(orig_info['greenlet']))
return events