Fixes data
This commit is contained in:
@@ -29,7 +29,6 @@ func StripNonCsvField(a Album) Album {
|
|||||||
Num: a.Num,
|
Num: a.Num,
|
||||||
NumA: a.NumA,
|
NumA: a.NumA,
|
||||||
State: a.State,
|
State: a.State,
|
||||||
Author: a.Author,
|
|
||||||
Editor: a.Editor,
|
Editor: a.Editor,
|
||||||
Collection: a.Collection,
|
Collection: a.Collection,
|
||||||
SatID: a.SatID,
|
SatID: a.SatID,
|
||||||
@@ -78,7 +77,7 @@ func GetCsvData() *bytes.Buffer {
|
|||||||
if m == nil {
|
if m == nil {
|
||||||
panic(fmt.Sprintf("should not happen with %#v", a))
|
panic(fmt.Sprintf("should not happen with %#v", a))
|
||||||
}
|
}
|
||||||
fmt.Fprintf(res, ";%d;%s;;;%s;;;;%s;%s;;;\"foo\";;;ALBUM\n", a.State, a.PurchaseDate.Format("02/01/2006"), a.Author, m[1], m[2])
|
fmt.Fprintf(res, ";%d;%s;;;%s;;;;%s;%s;;;\"foo\";;;ALBUM\n", a.State, a.PurchaseDate.Format("02/01/2006"), "", m[1], m[2])
|
||||||
}
|
}
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|||||||
2
testdata/albums.json
vendored
2
testdata/albums.json
vendored
@@ -1,5 +1,5 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"ID": 8179,
|
"ID": 8179,
|
||||||
"ISBN": "2-8001-1161-5",
|
"ISBN": "2-8001-1161-5",
|
||||||
"Series": "Mortes saisons",
|
"Series": "Mortes saisons",
|
||||||
|
|||||||
Reference in New Issue
Block a user