implemented a test multi query query

This commit is contained in:
Manuel Simon Hirsig
2016-01-28 02:11:02 +01:00
parent bada64f629
commit dfeb0af3a1
4 changed files with 83 additions and 35 deletions
+14 -3
View File
@@ -1,3 +1,14 @@
function load_group(datastring)
local item_keys = Aux.persistence.deserialize(datastring, ',')
end
local m = {}
Aux.groups = m
function m.parse_group(datastring)
return Aux.persistence.deserialize(datastring, ',')
end
function m.parse_item_key(item_key)
local _, _, item_id, suffix_id = strfind(item_key, '(%d+):?(%d*)')
return tonumber(item_id), suffix_id == '' and 0 or tonumber(suffix_id)
end
m.test_group = '13127,9510,4438,16254,12006,13131,13012,4413,1482'