Reworked the way metadata/tags for files work. Simplified it at lot.

This commit is contained in:
Kleissner
2021-09-28 02:59:47 +02:00
parent 24df8c1eb0
commit 9ef6a88512
7 changed files with 177 additions and 240 deletions

View File

@@ -281,9 +281,9 @@ func createTestResult(fileType int) (file core.BlockRecordFile) {
extension = ".bin"
}
file.TagsDecoded = append(file.TagsDecoded, core.FileTagName{Name: TempFileName("", extension)})
//file.TagsDecoded = append(file.TagsDecoded, core.FileTagFolder{Name: "not set"})
file.TagsDecoded = append(file.TagsDecoded, core.FileTagDateShared{Date: time.Now().UTC()})
file.Tags = append(file.Tags, core.TagFromText(core.TagName, TempFileName("", extension)))
//file.Tags = append(file.Tags, core.TagFromText(core.TagFolder, "not set"))
file.Tags = append(file.Tags, core.TagFromDate(core.TagDateShared, time.Now().UTC()))
return
}