update news widget
This commit is contained in:
@@ -32,8 +32,7 @@ end
|
|||||||
|
|
||||||
function on_network_result(result)
|
function on_network_result(result)
|
||||||
local t = json.decode(result)
|
local t = json.decode(result)
|
||||||
local n = aio:get_args()[2]
|
local n = math.min(lines_num, #t.items)
|
||||||
n = math.min(lines_num, #t.items)
|
|
||||||
|
|
||||||
for i = 1, n, 1 do
|
for i = 1, n, 1 do
|
||||||
titles[i] = t.items[i].title
|
titles[i] = t.items[i].title
|
||||||
|
|||||||
Reference in New Issue
Block a user