Clean up REST JSON a little further

This commit is contained in:
Jakob Borg
2015-04-20 22:37:04 +09:00
parent 34c691087e
commit bf7d84c12a
3 changed files with 69 additions and 44 deletions

View File

@@ -1482,8 +1482,8 @@ func (m *Model) GlobalDirectoryTree(folder, prefix string, levels int, dirsonly
}
if !dirsonly && base != "" {
last[base] = []int64{
f.Modified, f.Size(),
last[base] = []interface{}{
time.Unix(f.Modified, 0), f.Size(),
}
}