mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 17:30:11 +00:00
Migrates datasource datamodel to new class implementation
This commit is contained in:
parent
75b66d82b9
commit
37c58f56de
10 changed files with 30 additions and 30 deletions
|
|
@ -93,7 +93,7 @@ function datasource:deserialize(rest_response_data)
|
|||
local when = os.time()
|
||||
|
||||
if data and data.rc == rest_utils.consts.success.ok.rc then
|
||||
self.datamodel_instance = self.meta.datamodel:create(data.rsp.header)
|
||||
self.datamodel_instance = self.meta.datamodel:new(data.rsp.header)
|
||||
|
||||
for _, row in ipairs(data.rsp.rows) do
|
||||
self.datamodel_instance:appendRow(when, data.rsp.header, row)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue