diff --git a/colddb.lua b/colddb.lua index fbf1378..495f2a6 100644 --- a/colddb.lua +++ b/colddb.lua @@ -59,8 +59,8 @@ function colddb.add_tag(db,name,tag) db.tags[name] = "" end if type(tag) == "table" then - for _index in pairs(tag) do - t = string.format("%s%s/",t,_index) + for key,value in pairs(tag) do + t = string.format("%s%s/",t,value) end else t = string.format("%s/",tag)