Irgoriere day wenn 00 in myfigurecollection.lua
This commit is contained in:
parent
62165937ec
commit
5576ec3af8
@ -3,8 +3,12 @@ do
|
||||
local makeOurDate = function(dateString)
|
||||
local pattern = "(%d+)%-(%d+)%-(%d+)"
|
||||
local year, month, day = dateString:match(pattern)
|
||||
if day == "00" then
|
||||
return month..'.'..year
|
||||
else
|
||||
return day..'.'..month..'.'..year
|
||||
end
|
||||
end
|
||||
|
||||
local function get_info(name)
|
||||
local url = 'http://myfigurecollection.net/api.php?type=json&mode=collection&username='..name
|
||||
|
Reference in New Issue
Block a user