small fix
This commit is contained in:
@@ -14,7 +14,6 @@ local auto_folding = false
|
|||||||
local lines = {}
|
local lines = {}
|
||||||
|
|
||||||
local json = require "json"
|
local json = require "json"
|
||||||
local sx = require "pl.stringx"
|
|
||||||
|
|
||||||
function on_resume()
|
function on_resume()
|
||||||
if auto_folding then
|
if auto_folding then
|
||||||
@@ -30,7 +29,7 @@ end
|
|||||||
function on_network_result(result)
|
function on_network_result(result)
|
||||||
local t = json.decode(result)
|
local t = json.decode(result)
|
||||||
for i = 1, #t, 1 do
|
for i = 1, #t, 1 do
|
||||||
local date = sx.replace(t[i].date, "-", ".")
|
local date = t[i].date:replace("-", ".")
|
||||||
local name = t[i].localName
|
local name = t[i].localName
|
||||||
lines[i] = date.." - "..name
|
lines[i] = date.." - "..name
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user