Add removeData

This commit is contained in:
insweater 2015-02-05 18:39:52 +03:00
parent 9ce83e5cce
commit f4d5b0665c

View File

@ -114,4 +114,11 @@ function GJ.updateData(key, value, operation, isGlobal)
return string.sub(d, string.find(d, "\n"), string.len(d)) return string.sub(d, string.find(d, "\n"), string.len(d))
end end
function GJ.removeData(key, isGlobal)
local pu, pt = true, true
if isGlobal then pu, pt = false, false end
return string.find(req("data-store/remove/?key=" .. key, "dump", pu, pt), "SUCCESS") ~= nil
end
return GJ return GJ