From 8aa7828c2c96f5858b243736e275819dae3aeda7 Mon Sep 17 00:00:00 2001 From: Maximilian Möhring Date: Wed, 15 May 2019 14:03:47 +0200 Subject: Filter nonalcoholic drinks from Bottleworld. (crawler) --- crawler/utility.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawler/utility.go') diff --git a/crawler/utility.go b/crawler/utility.go index e59b40b..dd37e16 100644 --- a/crawler/utility.go +++ b/crawler/utility.go @@ -293,9 +293,10 @@ func get_volume(e *colly.HTMLElement) (float32, string) { func get_abv(e *colly.HTMLElement) (float32, string) { abv_noisy := e.Request.Ctx.Get("abv") + debug_info := e.Request.Ctx.Get("debug_info") if abv_noisy == "" { - return 0, abv_noisy + return 0, debug_info } // abv_noisy = strings.Replace(abv_noisy, ".", ",", 1) -- cgit v1.2.3