fix: change get_Table to get_table

This commit is contained in:
U-JOHNLIU\jonhl 2022-02-07 00:00:48 +08:00
parent cb483a22b4
commit f5eda5a3b3
2 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@
post_data/2,
get_filehome/1,
test/0,
get_Tabledata/2
get_tabledata/2
]).
%%--------------------------------------------------------------------
@ -697,7 +697,7 @@ get_attrs(Attrs, ImageUrl, Heigh, Width, ClassName, X) ->
X
end.
get_Tabledata(Parameter, Avgdatas) ->
get_tabledata(Parameter, Avgdatas) ->
Keys = binary:split(Parameter, <<$,>>, [global, trim]),
lists:foldl(fun(Avg, {Acc1, Num}) ->
Data =

View File

@ -233,7 +233,7 @@ do_request(post_generatereport, #{<<"id">> := TaskId}, #{<<"sessionToken">> := _
end,
%%
Parameter = maps:get(<<"parameter">>, Param, <<"flow,power,head,rotate,pressure_in,pressure_out,conversion_flow,conversion_head,conversion_power,effect">>),
{Tabledata, _} = dgiot_evidence:get_Tabledata(Parameter, Avgdatas),
{Tabledata, _} = dgiot_evidence:get_tabledata(Parameter, Avgdatas),
Acc ++ [#{
<<"type">> => <<"dynamicTable">>,
<<"source">> => Sources,