~elektito/gemplex

ab1f09b031f0e1c06c35e69c83cf017a6139d76a — Mostafa Razavi 1 year, 4 months ago 220883e
Remove debug prints
1 files changed, 0 insertions(+), 2 deletions(-)

M cmd/gemplex/crawl.go
M cmd/gemplex/crawl.go => cmd/gemplex/crawl.go +0 -2
@@ 288,8 288,6 @@ func updateDbSuccessfulVisit(r VisitResult) {

	for _, img := range r.page.Images {
		imgHash := calcContentHash([]byte(img.Value))
		fmt.Println("Insert:", imgHash)
		fmt.Println(img.Value)
		_, err = tx.Exec(`
insert into images (image_hash, image, alt, content_hash, url, fetch_time)
values ($1, $2, $3, $4, $5, $6)