aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorrtz12 <koenig@fagott.pw>2015-12-28 22:20:39 (UTC)
committerrtz12 <koenig@fagott.pw>2015-12-28 22:20:39 (UTC)
commitd0b0fb006174dfd5b98eae1523ef0fa1fa3db3d2 (patch)
treed6064f9a902446523561516e5d16a14d49bd6b2f /tools
parent6ffa881ed739d62ec36b0d5bf0bf8f4f179d62b5 (diff)
Noch mal krasses Logging
Diffstat (limited to 'tools')
-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)