aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/animeimporter/main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/animeimporter/main.go b/tools/animeimporter/main.go
index 7d95b8e..81ba516 100644
--- a/tools/animeimporter/main.go
+++ b/tools/animeimporter/main.go
@@ -67,17 +67,17 @@ func InsertSeries(s WrappedSeries) int {
67 } 67 }
68 if s.Series.KanjiName != "" { 68 if s.Series.KanjiName != "" {
69 _, err := db.Exec("INSERT INTO grilist.appearance_names (appearance_id, name, name_type) VALUES ($1, $2, $3);", 69 _, err := db.Exec("INSERT INTO grilist.appearance_names (appearance_id, name, name_type) VALUES ($1, $2, $3);",
70 dbID, s.Series.Name, 0) 70 dbID, s.Series.KanjiName, 0)
71 LogErr(err) 71 LogErr(err)
72 } 72 }
73 if s.Series.RomajiName != "" { 73 if s.Series.RomajiName != "" {
74 _, err := db.Exec("INSERT INTO grilist.appearance_names (appearance_id, name, name_type) VALUES ($1, $2, $3);", 74 _, err := db.Exec("INSERT INTO grilist.appearance_names (appearance_id, name, name_type) VALUES ($1, $2, $3);",
75 dbID, s.Series.Name, 1) 75 dbID, s.Series.RomajiName, 1)
76 LogErr(err) 76 LogErr(err)
77 } 77 }
78 if s.Series.FuriganaName != "" { 78 if s.Series.FuriganaName != "" {
79 _, err := db.Exec("INSERT INTO grilist.appearance_names (appearance_id, name, name_type) VALUES ($1, $2, $3);", 79 _, err := db.Exec("INSERT INTO grilist.appearance_names (appearance_id, name, name_type) VALUES ($1, $2, $3);",
80 dbID, s.Series.Name, 3) 80 dbID, s.Series.FuriganaName, 3)
81 LogErr(err) 81 LogErr(err)
82 } 82 }
83 for _, v := range s.Series.OtherNames { 83 for _, v := range s.Series.OtherNames {