use comma deliminator

This commit is contained in:
Hayden 2023-04-01 12:21:05 -08:00
parent c41a43d804
commit 0e48256b77
No known key found for this signature in database
GPG Key ID: 17CF79474E257545
1 changed files with 2 additions and 0 deletions

View File

@ -261,7 +261,9 @@ func (ctrl *V1Controller) HandleItemsExport() errchain.HandlerFunc {
w.Header().Set("Content-Type", "text/tsv")
w.Header().Set("Content-Disposition", "attachment;filename=homebox-items.tsv")
writer := csv.NewWriter(w)
writer.Comma = '\t'
return writer.WriteAll(csvData)
}
}