rating scale to ten in export
This commit is contained in:
parent
86d0991138
commit
6969c666c0
|
@ -63,7 +63,6 @@ func main() {
|
||||||
if enTitle == m.Title {
|
if enTitle == m.Title {
|
||||||
enTitle = ""
|
enTitle = ""
|
||||||
}
|
}
|
||||||
rating := float32(m.Rating) / 2
|
|
||||||
|
|
||||||
data := struct {
|
data := struct {
|
||||||
Title string
|
Title string
|
||||||
|
@ -79,7 +78,7 @@ func main() {
|
||||||
Year: m.Year,
|
Year: m.Year,
|
||||||
Directors: strings.Join(m.Directors, ", "),
|
Directors: strings.Join(m.Directors, ", "),
|
||||||
EnTitle: enTitle,
|
EnTitle: enTitle,
|
||||||
Rating: fmt.Sprintf("%.1f", rating),
|
Rating: fmt.Sprintf("%d", m.Rating),
|
||||||
Comment: m.Comment,
|
Comment: m.Comment,
|
||||||
}
|
}
|
||||||
if err := tpl.Execute(f, data); err != nil {
|
if err := tpl.Execute(f, data); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue