update news widget

This commit is contained in:
Evgeny
2021-08-04 17:36:11 +03:00
parent e3326d282e
commit 259ef63496

View File

@@ -32,8 +32,7 @@ end
function on_network_result(result)
local t = json.decode(result)
local n = aio:get_args()[2]
n = math.min(lines_num, #t.items)
local n = math.min(lines_num, #t.items)
for i = 1, n, 1 do
titles[i] = t.items[i].title