aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/importer/main.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/importer/main.go b/tools/importer/main.go
index 7f12d78..f0c0856 100644
--- a/tools/importer/main.go
+++ b/tools/importer/main.go
@@ -112,6 +112,11 @@ func main() {
112 row := db.QueryRow("INSERT INTO grilist.grils (age) VALUES (NULL) RETURNING id;") 112 row := db.QueryRow("INSERT INTO grilist.grils (age) VALUES (NULL) RETURNING id;")
113 var dbID int 113 var dbID int
114 row.Scan(&dbID) 114 row.Scan(&dbID)
115 fmt.Printf(
116 "Assigned %d from %s to %d\n",
117 g.Gril.ID,
118 sourceType,
119 dbID)
115 for _, v := range g.Gril.Tags { 120 for _, v := range g.Gril.Tags {
116 tagID := taglist[v] 121 tagID := taglist[v]
117 db.Exec("INSERT INTO grilist.grils_tags (gril_id, tag_id) VALUES ($1, $2);", dbID, tagID) 122 db.Exec("INSERT INTO grilist.grils_tags (gril_id, tag_id) VALUES ($1, $2);", dbID, tagID)