Remove global tag

This commit is contained in:
Coder12a
2019-01-09 00:25:55 -06:00
parent 02796f2998
commit 647330a033
2 changed files with 11 additions and 31 deletions

View File

@ -185,22 +185,6 @@ function colddb.Colddb(directory)
end)
end
self.add_global_tag = function(tag)
local t = ""
if type(tag) == "table" then
for index in pairs(tag) do
t = string.format("%s%s/", t, index)
end
else
t = string.format("%s/", tag)
end
self.db.global_tag = string.format("%s%s", self.db.global_tag, t)
self.db.directory = string.format("%s/%s", self.db.directory, t)
if not createDir(self.db.directory) then
error(string.format("%s is not a directory.", self.db.directory))
end
end
self.add_tag = function(name, tag)
local t = ""
if not self.db.tags[name] then