summaryrefslogtreecommitdiff
path: root/crawler/utility.go
diff options
context:
space:
mode:
authorhorus2018-02-19 17:53:20 +0100
committerhorus2018-02-19 17:53:20 +0100
commitc102c17ddfc3aaddde33023f89ca77c2ee04f0e5 (patch)
tree513ea10d99526e31f06696342bd182d977327237 /crawler/utility.go
parent48fb146188683048b9140f28cbdec3ce51289799 (diff)
downloadalkobote-c102c17ddfc3aaddde33023f89ca77c2ee04f0e5.tar.gz
Fix nasty bug. (crawler)
Diffstat (limited to 'crawler/utility.go')
-rw-r--r--crawler/utility.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawler/utility.go b/crawler/utility.go
index f588c22..a90de91 100644
--- a/crawler/utility.go
+++ b/crawler/utility.go
@@ -93,7 +93,7 @@ func extract_volume(volume string) (float32, error) {
}
volume_noisy = r_liter2.FindString(volume_noisy)
volume_noisy = strings.Replace(volume_noisy, ",", ".", 1)
- volume64, err := strconv.ParseFloat(volume_noisy, 32)
+ volume64, err := strconv.ParseFloat(volume_noisy, 0)
if err != nil {
Println(err, "Parsing volume to float failed")
return 0, err
@@ -120,7 +120,7 @@ func extract_abv(abv_noisy string) (float32, error) {
}
abv_noisy = r_abv.FindString(abv_noisy)
- abv64, err := strconv.ParseFloat(abv_noisy, 32)
+ abv64, err := strconv.ParseFloat(abv_noisy, 0)
if err != nil {
Println(err, "Parsing abv to float failed")
return 0, err