mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Reworks data returned to widgets
This commit is contained in:
parent
37c58f56de
commit
7ab4d846e8
3 changed files with 17 additions and 2 deletions
|
|
@ -252,7 +252,7 @@ function widgets_utils.rest_response()
|
|||
-- and set the transformed data as result
|
||||
local transformed_data = datasource_instance:transform(_POST["transformation"])
|
||||
|
||||
datasources_data[datasource.ds_hash] = transformed_data
|
||||
datasources_data[#datasources_data + 1] = {datasource = datasource, data = transformed_data}
|
||||
end
|
||||
|
||||
rest_utils.answer(rest_utils.consts.success.ok, datasources_data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue